diff options
author | Ghe Rivero <ghe.rivero@hp.com> | 2016-10-21 12:16:51 +0200 |
---|---|---|
committer | Ghe Rivero <ghe.rivero@hp.com> | 2016-10-21 13:38:31 +0200 |
commit | 86ade8f5281d2bb8b7c1637436aa8cb0c7cddb98 (patch) | |
tree | adcf0b9751abc1728a1325a36e8b41f43c6f750b | |
parent | 47068d0abbb1018e238213af30cf7840bb2104d9 (diff) | |
download | os-client-config-86ade8f5281d2bb8b7c1637436aa8cb0c7cddb98.tar.gz |
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
-rw-r--r-- | os_client_config/config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/os_client_config/config.py b/os_client_config/config.py index 6ff2359..774a259 100644 --- a/os_client_config/config.py +++ b/os_client_config/config.py @@ -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, |