one more place to check SpotPrice

This commit is contained in:
Adrian Bridgett 2015-10-26 10:20:49 +00:00
parent da771c469e
commit 3257b26fa7
1 changed files with 1 additions and 1 deletions

View File

@ -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
}