diff options
| author | Brian Lamar <brian.lamar@rackspace.com> | 2011-07-29 18:13:28 -0400 |
|---|---|---|
| committer | Brian Lamar <brian.lamar@rackspace.com> | 2011-07-29 18:13:28 -0400 |
| commit | a7f0eb04236b15a026654346b47bc434886b9d97 (patch) | |
| tree | 82c86c29e724c147e2aebd85935b0c8fbb60820e /nova/api | |
| parent | 055a422643fc229ec0e7db3f6dcba9904c5a4f5d (diff) | |
FlavorNotFound already existed, no need to create another exception.
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/servers.py | 2 |
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: |
