Merge pull request #10394 from anssijun/aws-ebs-retry-spot-instance-tagging

Fix retry logic in AWS spot instance tagging
This commit is contained in:
Megan Marsh 2020-12-15 11:07:48 -08:00 committed by GitHub
commit eecac40d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ func (s *StepRunSpotInstance) Run(ctx context.Context, state multistep.StateBag)
}
// Retry creating tags for about 2.5 minutes
err = retry.Config{Tries: 11, ShouldRetry: func(error) bool {
err = retry.Config{Tries: 11, ShouldRetry: func(err error) bool {
if awserrors.Matches(err, "InvalidInstanceID.NotFound", "") {
return true
}