From 3257b26fa773cd2df5de3e23279e62f59781786b Mon Sep 17 00:00:00 2001 From: Adrian Bridgett Date: Mon, 26 Oct 2015 10:20:49 +0000 Subject: [PATCH] one more place to check SpotPrice --- builder/amazon/ebs/step_stop_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/ebs/step_stop_instance.go b/builder/amazon/ebs/step_stop_instance.go index 77bcd2d7b..d6f135368 100644 --- a/builder/amazon/ebs/step_stop_instance.go +++ b/builder/amazon/ebs/step_stop_instance.go @@ -19,7 +19,7 @@ func (s *stepStopInstance) Run(state multistep.StateBag) multistep.StepAction { ui := state.Get("ui").(packer.Ui) // Skip when it is a spot instance - if s.SpotPrice != "" { + if s.SpotPrice != "" && s.SpotPrice != "0" { return multistep.ActionContinue }