diff options
| author | Alex Meade <alex.meade@rackspace.com> | 2012-01-13 21:27:21 +0000 |
|---|---|---|
| committer | Alex Meade <alex.meade@rackspace.com> | 2012-01-13 21:28:54 +0000 |
| commit | 9c1f5d49d7d2783054d1e01361298cddafeeec78 (patch) | |
| tree | d4e52d14790b62e9bb2440a26d5dc346538a2df1 /nova/api | |
| parent | c9f80f5bfbde7aaf8ffa1a4a9fac7d29951d0ada (diff) | |
have all quota errors return an http 413
Fixes bug 885986
Change-Id: I13a5f600c643c4ce80d638cac98c1c9b999630b2
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/servers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py index 60b85f591..e67eb2a8e 100644 --- a/nova/api/openstack/compute/servers.py +++ b/nova/api/openstack/compute/servers.py @@ -478,7 +478,8 @@ class Controller(wsgi.Controller): raise exc.HTTPRequestEntityTooLarge(explanation=expl, headers={'Retry-After': 0}) # if the original error is okay, just reraise it - raise error + raise exc.HTTPRequestEntityTooLarge(explanation=error.msg, + headers={'Retry-After': 0}) def _validate_server_name(self, value): if not isinstance(value, basestring): |
