summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-11-08 22:16:00 +0000
committerGerrit Code Review <review@openstack.org>2015-11-08 22:16:00 +0000
commit6dfa304617255f8f5d3011ee92648e3c2dbbe2fa (patch)
treeeb8d231a5a0734d8d4378a1c7fe4fbf5ca9cc0db /openstackclient
parent1cf09be91366224dfd95ab7013151e0510012dbb (diff)
parent2f00fcda77af8b87d009cd92facd6a5a6ea4acd8 (diff)
downloadpython-openstackclient-6dfa304617255f8f5d3011ee92648e3c2dbbe2fa.tar.gz
Merge "Allow int version numbers in the clouds.yaml"
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py
index 72521cb2..5b4939a2 100644
--- a/openstackclient/shell.py
+++ b/openstackclient/shell.py
@@ -280,7 +280,7 @@ class OpenStackShell(app.App):
for mod in clientmanager.PLUGIN_MODULES:
default_version = getattr(mod, 'DEFAULT_API_VERSION', None)
option = mod.API_VERSION_OPTION.replace('os_', '')
- version_opt = self.cloud.config.get(option, default_version)
+ version_opt = str(self.cloud.config.get(option, default_version))
if version_opt:
api = mod.API_NAME
self.api_version[api] = version_opt