From fd55a4e1d049748634e6d802ca124cb67596cd52 Mon Sep 17 00:00:00 2001 From: Rick Harris Date: Wed, 5 Jun 2013 22:44:35 +0000 Subject: 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 --- nova/exception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/exception.py') 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): -- cgit