Skip to content

Commit 2f00fcd

Browse files
committed
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
1 parent 266ecf5 commit 2f00fcd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def initialize_app(self, argv):
280280
for mod in clientmanager.PLUGIN_MODULES:
281281
default_version = getattr(mod, 'DEFAULT_API_VERSION', None)
282282
option = mod.API_VERSION_OPTION.replace('os_', '')
283-
version_opt = self.cloud.config.get(option, default_version)
283+
version_opt = str(self.cloud.config.get(option, default_version))
284284
if version_opt:
285285
api = mod.API_NAME
286286
self.api_version[api] = version_opt

0 commit comments

Comments
 (0)