Skip to content

Commit

Permalink
Pass PutWarmPool error to TryAgainLaterError
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Jul 28, 2023
1 parent bf47eed commit 99d2f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/awstasks/warmpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (*WarmPool) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *WarmPool) error
_, err := svc.PutWarmPool(request)
if err != nil {
if awsup.AWSErrorCode(err) == "ValidationError" {
return fi.NewTryAgainLaterError("waiting for ASG to become ready")
return fi.NewTryAgainLaterError("waiting for ASG to become ready").WithError(err)
}
return fmt.Errorf("error modifying warm pool: %w", err)
}
Expand Down

0 comments on commit 99d2f23

Please sign in to comment.