Have blob uploads be checked against configurable max layer size

This commit is contained in:
Joseph Schorr 2017-02-27 13:32:09 -05:00
parent 239b6d7cf8
commit ff7f78e990
2 changed files with 2 additions and 12 deletions

View file

@ -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',