summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorBrian Lamar <brian.lamar@rackspace.com>2011-07-29 18:13:28 -0400
committerBrian Lamar <brian.lamar@rackspace.com>2011-07-29 18:13:28 -0400
commita7f0eb04236b15a026654346b47bc434886b9d97 (patch)
tree82c86c29e724c147e2aebd85935b0c8fbb60820e /nova/api
parent055a422643fc229ec0e7db3f6dcba9904c5a4f5d (diff)
FlavorNotFound already existed, no need to create another exception.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/servers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py
index e62e4e4f8..f35eec884 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -411,7 +411,7 @@ class Controller(object):
try:
self.compute_api.resize(context, instance_id, flavor_id)
- except exception.FlavorDoesNotExist:
+ except exception.FlavorNotFound:
msg = _("Unable to locate requested flavor.")
raise exc.HTTPBadRequest(explanation=msg)
except exception.CannotResizeToSameSize: