summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorRick Harris <rconradharris@gmail.com>2013-06-05 22:44:35 +0000
committerRick Harris <rconradharris@gmail.com>2013-06-06 23:14:49 +0000
commitfd55a4e1d049748634e6d802ca124cb67596cd52 (patch)
tree3861ca3aa5e2b619d0b1b1ef3b59c8e9ab849819 /nova/exception.py
parent364a00019daea8e2c8006de6e0fafc2193808659 (diff)
downloadnova-fd55a4e1d049748634e6d802ca124cb67596cd52.tar.gz
nova-fd55a4e1d049748634e6d802ca124cb67596cd52.tar.xz
nova-fd55a4e1d049748634e6d802ca124cb67596cd52.zip
Improve Keypair error messages in osapi
The KeypairAPI code provides useful error messages that weren't being percolated back through the OpenStack API. This patch addresses this by using the original `message` when crafting the HTTPException objects. References bug 1187952 Change-Id: I786a225010d912d7bfea5c01838ddcf43fd90d53
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/exception.py b/nova/exception.py
index bbe5442f1..487eaae8e 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -895,7 +895,7 @@ class RotationRequiredForBackup(NovaException):
class KeyPairExists(Duplicate):
- message = _("Key pair %(key_name)s already exists.")
+ message = _("Key pair '%(key_name)s' already exists.")
class InstanceExists(Duplicate):