Commit f7a09453 authored by Chris Bednarski's avatar Chris Bednarski

Merge pull request #2538 from fnoeding/amazon-ebs-only-get-password-for-winrm

amazon builder: only fetch password for winrm
parents 611404d5 98b9d22b
......@@ -26,11 +26,10 @@ type StepGetPassword struct {
func (s *StepGetPassword) Run(state multistep.StateBag) multistep.StepAction {
ui := state.Get("ui").(packer.Ui)
image := state.Get("source_image").(*ec2.Image)
// Skip if we're not Windows...
if image.Platform == nil || *image.Platform != "windows" {
log.Printf("[INFO] Not Windows, skipping get password...")
// Skip if we're not using winrm
if s.Comm.Type != "winrm" {
log.Printf("[INFO] Not using winrm communicator, skipping get password...")
return multistep.ActionContinue
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment