Commit d23f254b authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon: don't get password if platform not set on image

parent fd4e0e9d
......@@ -28,7 +28,7 @@ func (s *StepGetPassword) Run(state multistep.StateBag) multistep.StepAction {
image := state.Get("source_image").(*ec2.Image)
// Skip if we're not Windows...
if *image.Platform != "windows" {
if image.Platform == nil || *image.Platform != "windows" {
log.Printf("[INFO] Not Windows, 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