Revert "Fix precedence for pass-in options"
This reverts commit 05b3c933b34e9cec9eb859a15392862918b3eb5f. Change-Id: I07dd701ca911cd12701519d2e6d624c69baa0848
This commit is contained in:
parent
05b3c933b3
commit
d71a902203
@ -885,14 +885,14 @@ class OpenStackConfig(object):
|
||||
plugin_options = loader.get_options()
|
||||
|
||||
for p_opt in plugin_options:
|
||||
# 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
|
||||
# if it's in config.auth, win, kill it from config dict
|
||||
# if it's in config and not in config.auth, move it
|
||||
# deprecated loses to current
|
||||
# provided beats default, deprecated or not
|
||||
winning_value = self._find_winning_auth_value(p_opt, config)
|
||||
winning_value = self._find_winning_auth_value(
|
||||
p_opt, config['auth'])
|
||||
if not winning_value:
|
||||
winning_value = self._find_winning_auth_value(
|
||||
p_opt, config['auth'])
|
||||
winning_value = self._find_winning_auth_value(p_opt, config)
|
||||
|
||||
# Clean up after ourselves
|
||||
for opt in [p_opt.name] + [o.name for o in p_opt.deprecated]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user