Have blob uploads be checked against configurable max layer size
This commit is contained in:
parent
239b6d7cf8
commit
ff7f78e990
2 changed files with 2 additions and 12 deletions
|
@ -130,11 +130,6 @@ class LayerTooLarge(V2RegistryException):
|
|||
max_str = bitmath.Byte(max_allowed).best_prefix().format("{value:.2f} {unit}")
|
||||
message = 'Uploaded blob of %s is larger than %s allowed by this registry' % (up_str, max_str)
|
||||
|
||||
super(LayerTooLarge, self).__init__('BLOB_UPLOAD_INVALID',
|
||||
message,
|
||||
detail)
|
||||
|
||||
|
||||
class Unauthorized(V2RegistryException):
|
||||
def __init__(self, detail=None, repository=None, scopes=None):
|
||||
super(Unauthorized, self).__init__('UNAUTHORIZED',
|
||||
|
|
Reference in a new issue