summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorAnthony Young <sleepsonthefloor@gmail.com>2011-08-31 12:44:15 -0700
committerAnthony Young <sleepsonthefloor@gmail.com>2011-08-31 12:44:15 -0700
commitf687e978a41c78e10e0c371c5486298925b5857f (patch)
treed4d01c4f88f7da76d9de66872bf227438c3d0d10 /nova/api
parent1477b8c33374db1166c6c67ff68e03c94f3436a5 (diff)
add explicit message for NoMoreFloatingIps exception
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/contrib/floating_ips.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/contrib/floating_ips.py b/nova/api/openstack/contrib/floating_ips.py
index 99c0d1469..6ce531c8f 100644
--- a/nova/api/openstack/contrib/floating_ips.py
+++ b/nova/api/openstack/contrib/floating_ips.py
@@ -96,7 +96,8 @@ class FloatingIPController(object):
except rpc.RemoteError as ex:
# NOTE(tr3buchet) - why does this block exist?
if ex.exc_type == 'NoMoreFloatingIps':
- raise webob.exc.HTTPBadRequest(explanation=ex.message)
+ msg = _("No more floating ips available.")
+ raise webob.exc.HTTPBadRequest(explanation=msg)
else:
raise