summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-10-10 19:52:29 +0000
committerGerrit Code Review <review@openstack.org>2012-10-10 19:52:29 +0000
commit8f06be98b8e83c5e74d12bfb7607e76902cd9385 (patch)
treeb41d3a334b272be06e849da96ceadf3309650e2f /nova/api
parentde2fec579e43ee34e9e9a87cc1d07869fa7e44dc (diff)
parent5b0494f877ec1cb95bb18b8608a341c21109832f (diff)
Merge "Return proper error messages while associating floating IP"
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/contrib/floating_ips.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/contrib/floating_ips.py b/nova/api/openstack/compute/contrib/floating_ips.py
index 1c17591a4..67d52b9ca 100644
--- a/nova/api/openstack/compute/contrib/floating_ips.py
+++ b/nova/api/openstack/compute/contrib/floating_ips.py
@@ -259,7 +259,8 @@ class FloatingIPActionController(wsgi.Controller):
except exception.NoFloatingIpInterface:
msg = _('l3driver call to add floating ip failed')
raise webob.exc.HTTPBadRequest(explanation=msg)
- except exception.FloatingIpNotFoundForAddress:
+ except (exception.FloatingIpNotFoundForAddress,
+ exception.NotAuthorized):
msg = _('floating ip not found')
raise webob.exc.HTTPNotFound(explanation=msg)
except Exception: