summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorTushar Patil <tushar.vitthal.patil@gmail.com>2011-07-13 13:57:50 -0700
committerTushar Patil <tushar.vitthal.patil@gmail.com>2011-07-13 13:57:50 -0700
commit2ecbdd46d48bafbeb451875ba6e7f67276d83602 (patch)
treee529f39760c5b226acd8998930343b82f78a0861 /nova/api
parent9a77965327857e5b8acc2cfa083250f36743872b (diff)
downloadnova-2ecbdd46d48bafbeb451875ba6e7f67276d83602.tar.gz
nova-2ecbdd46d48bafbeb451875ba6e7f67276d83602.tar.xz
nova-2ecbdd46d48bafbeb451875ba6e7f67276d83602.zip
Minor fixes
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/create_instance_helper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/create_instance_helper.py b/nova/api/openstack/create_instance_helper.py
index 5eef0ae00..0337dd5bb 100644
--- a/nova/api/openstack/create_instance_helper.py
+++ b/nova/api/openstack/create_instance_helper.py
@@ -162,7 +162,8 @@ class CreateInstanceHelper(object):
msg = _("Can not find requested image")
raise faults.Fault(exc.HTTPBadRequest(explanation=msg))
except rpc.RemoteError as err:
- msg = _("%(err.exc_type)s:%(err.value)s")
+ msg = "%(err_type)s: %(err_msg)s" % \
+ {'err_type': err.exc_type, 'err_msg': err.value}
raise faults.Fault(exc.HTTPBadRequest(explanation=msg))
# Let the caller deal with unhandled exceptions.