mirror of https://github.com/kubernetes/kops.git
Pass PutWarmPool error to TryAgainLaterError
This commit is contained in:
parent
bf47eedcb3
commit
99d2f23054
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue