builder/amazon: fix test failures

This commit is contained in:
Mitchell Hashimoto 2015-05-28 09:44:33 -07:00
parent 8cc2e579b4
commit 07734133a3
1 changed files with 1 additions and 2 deletions

View File

@ -111,7 +111,7 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
if price == 0 || current < price {
price = current
if s.AvailabilityZone == "" {
availabilityZone = history.AvailabilityZone
availabilityZone = *history.AvailabilityZone
}
}
}
@ -167,7 +167,6 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
ui.Message(fmt.Sprintf(
"Requesting spot instance '%s' for: %s",
s.InstanceType, spotPrice))
D
runSpotResp, err := ec2conn.RequestSpotInstances(&ec2.RequestSpotInstancesInput{
SpotPrice: &spotPrice,
LaunchSpecification: &ec2.RequestSpotLaunchSpecification{