From 941dc394f0c5f59b7d6ee0c99363428f5e37d1b3 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Fri, 27 Sep 2019 13:04:52 +0200 Subject: [PATCH] Update step_run_spot_instance.go --- builder/amazon/common/step_run_spot_instance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/amazon/common/step_run_spot_instance.go b/builder/amazon/common/step_run_spot_instance.go index cde5f003a..ab15bdff3 100644 --- a/builder/amazon/common/step_run_spot_instance.go +++ b/builder/amazon/common/step_run_spot_instance.go @@ -294,8 +294,8 @@ func (s *StepRunSpotInstance) Run(ctx context.Context, state multistep.StateBag) // Get information about the created instance var describeOutput *ec2.DescribeInstancesOutput err = retry.Config{ - Tries: 11, - RetryDelay: (&retry.Backoff{InitialBackoff: 200 * time.Millisecond, MaxBackoff: 30 * time.Second, Multiplier: 2}).Linear, + Tries: 11, + RetryDelay: (&retry.Backoff{InitialBackoff: 200 * time.Millisecond, MaxBackoff: 30 * time.Second, Multiplier: 2}).Linear, }.Run(ctx, func(ctx context.Context) error { describeOutput, err = ec2conn.DescribeInstances(&ec2.DescribeInstancesInput{ InstanceIds: []*string{aws.String(instanceId)},