File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
package eks
2
2
3
3
import (
4
+ "errors"
4
5
"net/http"
5
6
6
7
"github.com/aws/aws-sdk-go-v2/aws"
7
-
8
8
"github.com/aws/aws-sdk-go-v2/aws/retry"
9
9
10
10
"github.com/aws/aws-sdk-go/aws/awserr"
11
11
"github.com/aws/smithy-go"
12
- "github.com/pkg/errors"
13
12
)
14
13
15
14
const (
@@ -39,7 +38,10 @@ func (r *RetryerV2) IsErrorRetryable(err error) bool {
39
38
}
40
39
41
40
var oe * smithy.OperationError
42
- return errors .As (err , & oe ) && oe .Err != nil && isErrorRetryable (oe .Err )
41
+ if ! errors .As (err , & oe ) {
42
+ return true
43
+ }
44
+ return oe .Err != nil && isErrorRetryable (oe .Err )
43
45
}
44
46
45
47
func isErrorRetryable (err error ) bool {
Original file line number Diff line number Diff line change 5
5
"sync"
6
6
7
7
"github.com/aws/aws-sdk-go-v2/aws"
8
+ "github.com/aws/aws-sdk-go-v2/aws/ratelimit"
8
9
"github.com/aws/aws-sdk-go-v2/aws/retry"
9
10
"github.com/aws/aws-sdk-go-v2/service/cloudformation"
10
11
"github.com/aws/aws-sdk-go-v2/service/ec2"
@@ -85,6 +86,7 @@ func (s *ServicesV2) CloudFormation() awsapi.CloudFormation {
85
86
o .StandardOptions = []func (* retry.StandardOptions ){
86
87
func (so * retry.StandardOptions ) {
87
88
so .MaxAttempts = maxRetries
89
+ so .RateLimiter = ratelimit .None
88
90
},
89
91
}
90
92
})
You can’t perform that action at this time.
0 commit comments