From b1ccdd4e119c25fcdf5ab3989c67689215ec1504 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 31 Jul 2013 15:29:03 -0700 Subject: [PATCH] fmt --- builder/amazon/common/step_run_source_instance.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/amazon/common/step_run_source_instance.go b/builder/amazon/common/step_run_source_instance.go index 2c86e0d06..58f6f0f07 100644 --- a/builder/amazon/common/step_run_source_instance.go +++ b/builder/amazon/common/step_run_source_instance.go @@ -41,6 +41,7 @@ func (s *StepRunSourceInstance) Run(state map[string]interface{}) multistep.Step state["error"] = fmt.Errorf("There was a problem with the source AMI: %s", err) return multistep.ActionHalt } + if len(imageResp.Images) != 1 { state["error"] = fmt.Errorf("The source AMI '%s' could not be found.", s.SourceAMI) return multistep.ActionHalt