From 07734133a3b560c6f89cee92e88b6674a6033b7e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 28 May 2015 09:44:33 -0700 Subject: [PATCH] builder/amazon: fix test failures --- builder/amazon/common/step_run_source_instance.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builder/amazon/common/step_run_source_instance.go b/builder/amazon/common/step_run_source_instance.go index ac6ce3ca5..fac240df7 100644 --- a/builder/amazon/common/step_run_source_instance.go +++ b/builder/amazon/common/step_run_source_instance.go @@ -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{