From 43385a58bc3dfb56bb9aaa425b301db700c06d4e Mon Sep 17 00:00:00 2001 From: Henry Huang Date: Tue, 20 May 2014 11:16:50 +0800 Subject: [PATCH] Refine the comments --- builder/amazon/ebs/step_create_ami.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/amazon/ebs/step_create_ami.go b/builder/amazon/ebs/step_create_ami.go index fe164646a..18f1f833a 100644 --- a/builder/amazon/ebs/step_create_ami.go +++ b/builder/amazon/ebs/step_create_ami.go @@ -34,7 +34,6 @@ func (s *stepCreateAMI) Run(state multistep.StateBag) multistep.StepAction { return multistep.ActionHalt } - // Set the AMI ID in the state imagesResp, err := ec2conn.Images([]string{createResp.ImageId}, nil) if err != nil { err := fmt.Errorf("Error searching for AMI: %s", err) @@ -43,6 +42,8 @@ func (s *stepCreateAMI) Run(state multistep.StateBag) multistep.StepAction { return multistep.ActionHalt } s.image = &imagesResp.Images[0] + + // Set the AMI ID in the state ui.Message(fmt.Sprintf("AMI: %s", createResp.ImageId)) amis := make(map[string]string) amis[ec2conn.Region.Name] = createResp.ImageId