diff options
| author | William Wolf <throughnothing@gmail.com> | 2011-05-18 10:45:33 -0400 |
|---|---|---|
| committer | William Wolf <throughnothing@gmail.com> | 2011-05-18 10:45:33 -0400 |
| commit | d94d040986e00409ed031b591b39a43edc111e28 (patch) | |
| tree | e585320c73e74cd631607f503197d1b430157941 | |
| parent | 96c888312fb7a2ba2cc9120282d29128a18342a8 (diff) | |
fixed api.openstack.test_servers tests...again
| -rw-r--r-- | nova/api/openstack/servers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index ca13a8669..17d286748 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -184,6 +184,10 @@ class Controller(common.OpenstackController): injected_files=injected_files) except quota.QuotaError as error: self._handle_quota_error(error) + except exception.ImageNotFound as error: + msg = _("Can not find requested image") + return faults.Fault(exc.HTTPBadRequest(msg)) + inst['instance_type'] = inst_type inst['image_id'] = image_ref |
