summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-08-31 12:51:16 -0700
committerVishvananda Ishaya <vishvananda@gmail.com>2011-08-31 12:51:16 -0700
commitc9758dd4832c167562baefad5dcc88f2a1a19b73 (patch)
tree1cf2d6f3bcf15868a9920687e53fbb98df277542 /nova/api
parentabd6b240b5247a2981e86c1d3161306fb2b4c4c5 (diff)
fix keypairs stubs
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/create_instance_helper.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/api/openstack/create_instance_helper.py b/nova/api/openstack/create_instance_helper.py
index d82cb534f..744353f31 100644
--- a/nova/api/openstack/create_instance_helper.py
+++ b/nova/api/openstack/create_instance_helper.py
@@ -189,6 +189,7 @@ class CreateInstanceHelper(object):
raise exc.HTTPBadRequest(explanation=msg)
except exception.KeypairNotFound as error:
msg = _("Invalid key_name provided.")
+ raise exc.HTTPBadRequest(explanation=msg)
except exception.SecurityGroupNotFound as error:
raise exc.HTTPBadRequest(explanation=unicode(error))
except RemoteError as err: