From d23f254b7675dd1e49b5a393b27e38e0a6214c32 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 13 Jun 2015 22:39:19 -0700 Subject: [PATCH] builder/amazon: don't get password if platform not set on image --- builder/amazon/common/step_get_password.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/common/step_get_password.go b/builder/amazon/common/step_get_password.go index 9d982b10b..a2ef04952 100644 --- a/builder/amazon/common/step_get_password.go +++ b/builder/amazon/common/step_get_password.go @@ -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 }