diff options
author | Zhengguang <zhengguangou@gmail.com> | 2014-04-18 15:15:48 +0800 |
---|---|---|
committer | Zhengguang <zhengguangou@gmail.com> | 2014-04-20 10:59:22 -0400 |
commit | fdd59e142a69d02123ad5b8522ba0e75c731e02f (patch) | |
tree | c150fbbfb06094bd0aa8f9b6f4ab8ccf752dc8f2 /novaclient/utils.py | |
parent | 5ff5e05facf7253cb6aa467f4e39cd3750b0ab08 (diff) | |
download | python-novaclient-fdd59e142a69d02123ad5b8522ba0e75c731e02f.tar.gz |
Fix the incorrect return messages in keypair show and delete
When we delete or show a keypair, if the keypair doesn't exist,
we'll get "The resource could not be found.(HTTP 404)", this
patch will change it to "ERROR: No keypair with a name or ID of
'keypair_name' exists."
Change-Id: Ifebd8d2213c327f3d3fdd672207170aebbe1bb40
Closes-Bug: #1307338
Diffstat (limited to 'novaclient/utils.py')
-rw-r--r-- | novaclient/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/novaclient/utils.py b/novaclient/utils.py index c10d5c3b..6d93f26a 100644 --- a/novaclient/utils.py +++ b/novaclient/utils.py @@ -203,7 +203,7 @@ def print_dict(d, dict_property="Property", dict_value="Value", wrap=0): def find_resource(manager, name_or_id, **find_args): """Helper for the _find_* methods.""" - # for str id which is not uuid (for Flavor search currently) + # for str id which is not uuid (for Flavor and Keypair search currently) if getattr(manager, 'is_alphanum_id_allowed', False): try: return manager.get(name_or_id) |