diff options
| author | Yun Mao <yunmao@gmail.com> | 2012-11-12 14:52:02 -0500 |
|---|---|---|
| committer | Yun Mao <yunmao@gmail.com> | 2012-11-12 14:52:02 -0500 |
| commit | d6d0a67c5cbbee6cabd90ed563b9b9c35d724a94 (patch) | |
| tree | ff794344ae669e9fd28bf3be7414d83831f92218 | |
| parent | 6a63baadae2cb1c99b0e6e107dab9a0f454621fc (diff) | |
| download | nova-d6d0a67c5cbbee6cabd90ed563b9b9c35d724a94.tar.gz nova-d6d0a67c5cbbee6cabd90ed563b9b9c35d724a94.tar.xz nova-d6d0a67c5cbbee6cabd90ed563b9b9c35d724a94.zip | |
Add missing webob to exc
Part of bug 1078062
Change-Id: I05910f6d2dea7af51f1fe35d7efa6006dfef02bf
| -rw-r--r-- | nova/api/openstack/compute/contrib/deferred_delete.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/contrib/deferred_delete.py b/nova/api/openstack/compute/contrib/deferred_delete.py index ea7ac00f9..14b608677 100644 --- a/nova/api/openstack/compute/contrib/deferred_delete.py +++ b/nova/api/openstack/compute/contrib/deferred_delete.py @@ -43,7 +43,8 @@ class DeferredDeleteController(wsgi.Controller): try: self.compute_api.restore(context, instance) except exception.QuotaError as error: - raise exc.HTTPRequestEntityTooLarge(explanation=unicode(error), + raise webob.exc.HTTPRequestEntityTooLarge( + explanation=unicode(error), headers={'Retry-After': 0}) except exception.InstanceInvalidState as state_error: common.raise_http_conflict_for_instance_invalid_state(state_error, |
