Normalize cloud config before osc-lib call

Cloud config was passed to osc-lib before being normalized,
causing exceptions when some api versions were stil an int
where osc-lib expects a str

Change-Id: I7326114d86a4208f1489c302e8bb838dd5b8c5d6
This commit is contained in:
Ghe Rivero 2016-10-21 12:16:51 +02:00
parent 47068d0abb
commit 86ade8f528
1 changed files with 2 additions and 1 deletions

View File

@ -1085,6 +1085,7 @@ class OpenStackConfig(object):
config[key] = val
config = self.magic_fixes(config)
config = self._normalize_keys(config)
# NOTE(dtroyer): OSC needs a hook into the auth args before the
# plugin is loaded in order to maintain backward-
@ -1127,7 +1128,7 @@ class OpenStackConfig(object):
return cloud_config.CloudConfig(
name=cloud_name,
region=config['region_name'],
config=self._normalize_keys(config),
config=config,
force_ipv4=force_ipv4,
auth_plugin=auth_plugin,
openstack_config=self,