Add missing webob to exc
Part of bug 1078062 Change-Id: I05910f6d2dea7af51f1fe35d7efa6006dfef02bf
This commit is contained in:
parent
6a63baadae
commit
d6d0a67c5c
@ -43,7 +43,8 @@ class DeferredDeleteController(wsgi.Controller):
|
|||||||
try:
|
try:
|
||||||
self.compute_api.restore(context, instance)
|
self.compute_api.restore(context, instance)
|
||||||
except exception.QuotaError as error:
|
except exception.QuotaError as error:
|
||||||
raise exc.HTTPRequestEntityTooLarge(explanation=unicode(error),
|
raise webob.exc.HTTPRequestEntityTooLarge(
|
||||||
|
explanation=unicode(error),
|
||||||
headers={'Retry-After': 0})
|
headers={'Retry-After': 0})
|
||||||
except exception.InstanceInvalidState as state_error:
|
except exception.InstanceInvalidState as state_error:
|
||||||
common.raise_http_conflict_for_instance_invalid_state(state_error,
|
common.raise_http_conflict_for_instance_invalid_state(state_error,
|
||||||
|
Loading…
Reference in New Issue
Block a user