Merge pull request #3662 from ryansb/boost-spot-bid

(AWS Spot) Add 0.5 cents to discovered spot price
This commit is contained in:
Rickard von Essen 2016-08-27 03:18:59 +02:00 committed by GitHub
commit ba629922c6
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
state.Put("error", err)
ui.Error(err.Error())
return multistep.ActionHalt
} else {
// Add 0.5 cents to minimum spot bid to ensure capacity will be available
// Avoids price-too-low error in active markets which can fluctuate
price = price + 0.005
}
spotPrice = strconv.FormatFloat(price, 'f', -1, 64)