diff --git a/builder/amazon/ebs/step_stop_instance.go b/builder/amazon/ebs/step_stop_instance.go index c64e23c7d..c266b46d4 100644 --- a/builder/amazon/ebs/step_stop_instance.go +++ b/builder/amazon/ebs/step_stop_instance.go @@ -8,8 +8,8 @@ import ( "github.com/mitchellh/packer/packer" ) -type stepStopInstance struct{ - SpotPrice string +type stepStopInstance struct { + SpotPrice string } func (s *stepStopInstance) Run(state multistep.StateBag) multistep.StepAction { @@ -17,11 +17,11 @@ func (s *stepStopInstance) Run(state multistep.StateBag) multistep.StepAction { instance := state.Get("instance").(*ec2.Instance) ui := state.Get("ui").(packer.Ui) - // Skip when it is a spot instance - if s.SpotPrice != "" { + // Skip when it is a spot instance + if s.SpotPrice != "" { ui.Say(fmt.Sprintf("This is a spot instance, no need to stop for the AMI")) - return multistep.ActionContinue - } + return multistep.ActionContinue + } // Stop the instance so we can create an AMI from it ui.Say("Stopping the source instance...")