Explorar o código

Merge pull request #24520 from aaronlehmann/no-retry-on-unknown-repository

Don't retry push on an unknown repository
Phil Estes %!s(int64=9) %!d(string=hai) anos
pai
achega
10d5d08c48
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      distribution/errors.go

+ 1 - 1
distribution/errors.go

@@ -89,7 +89,7 @@ func retryOnError(err error) error {
 		}
 	case errcode.Error:
 		switch v.Code {
-		case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied, errcode.ErrorCodeTooManyRequests:
+		case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied, errcode.ErrorCodeTooManyRequests, v2.ErrorCodeNameUnknown:
 			return xfer.DoNotRetry{Err: err}
 		}
 	case *url.Error: