distribution: errors: do not retry on too many requests from registry

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Upstream-commit: 66fbc0c2a3e813359654f21433abf995b6687265
Component: engine
This commit is contained in:
Antonio Murdaca
2016-05-04 18:57:55 +02:00
parent 6912e449fb
commit 0022a5af4e
+1 -1
View File
@@ -89,7 +89,7 @@ func retryOnError(err error) error {
}
case errcode.Error:
switch v.Code {
case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied:
case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied, errcode.ErrorCodeTooManyRequests:
return xfer.DoNotRetry{Err: err}
}
case *url.Error: