diff options
author | Leandro I. Costantino <leandro.i.costantino@intel.com> | 2014-02-19 13:20:36 -0300 |
---|---|---|
committer | Leandro I. Costantino <leandro.i.costantino@intel.com> | 2014-02-19 13:44:29 -0300 |
commit | 2caf682bcdc2f66755a67c91b5b7210c09bb9b44 (patch) | |
tree | aba705eb7b6d94e59367245927e0a71295759c87 | |
parent | 7cf73f19423f53a7eddc221fddbd60a610aa47a7 (diff) | |
download | python-novaclient-2caf682bcdc2f66755a67c91b5b7210c09bb9b44.tar.gz |
Invalid client version message unclear
The error message when using an invalid os-compute-api-version is
created by joining all the available versions without space.
This patch will add ', ' between versions.
Ex: nova --os-compute-api-version v3 list
ERROR: Invalid client version 'v3'. must be one of: 321.1
Now: nova --os-compute-api-version v3 list
ERROR: Invalid client version 'v3'. must be one of: 3, 2, 1.1
Change-Id: I825df89d38adc9e4bd3fb900cd0199f159c04a6b
-rw-r--r-- | novaclient/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/novaclient/client.py b/novaclient/client.py index 105d8075..8ec471cf 100644 --- a/novaclient/client.py +++ b/novaclient/client.py @@ -466,7 +466,7 @@ def get_client_class(version): except (KeyError, ValueError): msg = _("Invalid client version '%(version)s'. must be one of: " "%(keys)s") % {'version': version, - 'keys': ''.join(version_map.keys())} + 'keys': ', '.join(version_map.keys())} raise exceptions.UnsupportedVersion(msg) return utils.import_class(client_path) |