summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorTerryHowe <terrylhowe@gmail.com>2015-11-04 11:20:43 -0700
committerTerryHowe <terrylhowe@gmail.com>2015-11-04 11:20:43 -0700
commit2f00fcda77af8b87d009cd92facd6a5a6ea4acd8 (patch)
treeaa2adba65cd7262027d8bf64a717393248253dec /openstackclient
parent266ecf57f508b7dab2e005aecff9dc66bb81a6d1 (diff)
downloadpython-openstackclient-2f00fcda77af8b87d009cd92facd6a5a6ea4acd8.tar.gz
Allow int version numbers in the clouds.yaml
OSC blows up if you try to use for example identity_api_version: 2 in the clouds.yaml. It will only work with a string '2'. This fixes that. Change-Id: I785d37a288126a1582464e907c7f9c9947bac27c
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