summaryrefslogtreecommitdiff
path: root/os_client_config/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'os_client_config/config.py')
-rw-r--r--os_client_config/config.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/os_client_config/config.py b/os_client_config/config.py
index beea4c4..d1b3144 100644
--- a/os_client_config/config.py
+++ b/os_client_config/config.py
@@ -888,14 +888,14 @@ class OpenStackConfig(object):
plugin_options = loader.get_options()
for p_opt in plugin_options:
- # if it's in config.auth, win, kill it from config dict
- # if it's in config and not in config.auth, move it
+ # if it's in config, win, move it and kill it from config dict
+ # if it's in config.auth but not in config we're good
# deprecated loses to current
# provided beats default, deprecated or not
- winning_value = self._find_winning_auth_value(
- p_opt, config['auth'])
+ winning_value = self._find_winning_auth_value(p_opt, config)
if not winning_value:
- winning_value = self._find_winning_auth_value(p_opt, config)
+ winning_value = self._find_winning_auth_value(
+ p_opt, config['auth'])
# Clean up after ourselves
for opt in [p_opt.name] + [o.name for o in p_opt.deprecated]: