diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-05-02 04:53:15 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-05-02 04:53:15 +0000 |
| commit | 44884cf18778995c3fa92297e143e31ec26e9901 (patch) | |
| tree | e7e47244ab75cbbbe8d53c55a75647dba5531e26 /nova/api | |
| parent | 4d8b68ad58f2b005cbec7b7d3abbef4eae66e885 (diff) | |
| parent | 051cf0d756d9a9e1d0a5ea1169fa97d89b7885bc (diff) | |
Merge "Call format_message on InstanceTypeNotFound exception"
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/servers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py index bc4ba67df..94912da97 100644 --- a/nova/api/openstack/compute/servers.py +++ b/nova/api/openstack/compute/servers.py @@ -903,7 +903,7 @@ class Controller(wsgi.Controller): except exception.InstanceTypeMemoryTooSmall as error: raise exc.HTTPBadRequest(explanation=error.format_message()) except exception.InstanceTypeNotFound as error: - raise exc.HTTPBadRequest(explanation=error) + raise exc.HTTPBadRequest(explanation=error.format_message()) except exception.InstanceTypeDiskTooSmall as error: raise exc.HTTPBadRequest(explanation=error.format_message()) except exception.InvalidMetadata as error: |
