mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-10 08:36:20 +00:00
Update Azure Go SDK to v19.0.0
This commit is contained in:
4
vendor/github.com/Azure/go-autorest/autorest/sender.go
generated
vendored
4
vendor/github.com/Azure/go-autorest/autorest/sender.go
generated
vendored
@@ -223,6 +223,10 @@ func DoRetryForStatusCodes(attempts int, backoff time.Duration, codes ...int) Se
|
||||
return resp, err
|
||||
}
|
||||
resp, err = s.Do(rr.Request())
|
||||
// if the error isn't temporary don't bother retrying
|
||||
if err != nil && !IsTemporaryNetworkError(err) {
|
||||
return nil, err
|
||||
}
|
||||
// we want to retry if err is not nil (e.g. transient network failure). note that for failed authentication
|
||||
// resp and err will both have a value, so in this case we don't want to retry as it will never succeed.
|
||||
if err == nil && !ResponseHasStatusCode(resp, codes...) || IsTokenRefreshError(err) {
|
||||
|
||||
Reference in New Issue
Block a user