Merge "Remove extra expected error code (413) from image metadata"
This commit is contained in:
@@ -59,7 +59,7 @@ class ImageMetadataController(wsgi.Controller):
|
|||||||
else:
|
else:
|
||||||
raise exc.HTTPNotFound()
|
raise exc.HTTPNotFound()
|
||||||
|
|
||||||
@extensions.expected_errors((400, 403, 404, 413))
|
@extensions.expected_errors((400, 403, 404))
|
||||||
@validation.schema(image_metadata.create)
|
@validation.schema(image_metadata.create)
|
||||||
def create(self, req, image_id, body):
|
def create(self, req, image_id, body):
|
||||||
context = req.environ['nova.context']
|
context = req.environ['nova.context']
|
||||||
@@ -75,7 +75,7 @@ class ImageMetadataController(wsgi.Controller):
|
|||||||
raise exc.HTTPForbidden(explanation=e.format_message())
|
raise exc.HTTPForbidden(explanation=e.format_message())
|
||||||
return dict(metadata=image['properties'])
|
return dict(metadata=image['properties'])
|
||||||
|
|
||||||
@extensions.expected_errors((400, 403, 404, 413))
|
@extensions.expected_errors((400, 403, 404))
|
||||||
@validation.schema(image_metadata.update)
|
@validation.schema(image_metadata.update)
|
||||||
def update(self, req, image_id, id, body):
|
def update(self, req, image_id, id, body):
|
||||||
context = req.environ['nova.context']
|
context = req.environ['nova.context']
|
||||||
@@ -97,7 +97,7 @@ class ImageMetadataController(wsgi.Controller):
|
|||||||
raise exc.HTTPForbidden(explanation=e.format_message())
|
raise exc.HTTPForbidden(explanation=e.format_message())
|
||||||
return dict(meta=meta)
|
return dict(meta=meta)
|
||||||
|
|
||||||
@extensions.expected_errors((400, 403, 404, 413))
|
@extensions.expected_errors((400, 403, 404))
|
||||||
@validation.schema(image_metadata.update_all)
|
@validation.schema(image_metadata.update_all)
|
||||||
def update_all(self, req, image_id, body):
|
def update_all(self, req, image_id, body):
|
||||||
context = req.environ['nova.context']
|
context = req.environ['nova.context']
|
||||||
|
|||||||
Reference in New Issue
Block a user