diff options
author | Yves Martin <ymartin1040@gmail.com> | 2018-08-22 19:09:22 +0200 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2018-08-22 19:09:22 +0200 |
commit | 2f9a5a75a890092d62fd64c489f95f1d66f827eb (patch) | |
tree | 6d8556904897018466306a5ed0096c50bf415963 /contrib | |
parent | More consistent Docker unit parsing (#16748) (diff) | |
download | ansible-2f9a5a75a890092d62fd64c489f95f1d66f827eb.tar.xz ansible-2f9a5a75a890092d62fd64c489f95f1d66f827eb.zip |
Update vault-keyring to ConfigManager internals (#41967)
Fix failure since ConfigManager changes
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/vault/vault-keyring.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/vault/vault-keyring.py b/contrib/vault/vault-keyring.py index 99bc428dd4..f03119a8dd 100755 --- a/contrib/vault/vault-keyring.py +++ b/contrib/vault/vault-keyring.py @@ -71,12 +71,12 @@ from ansible.config.manager import ConfigManager, get_ini_config_value def main(): config = ConfigManager() username = get_ini_config_value( - config._parser, + config._parsers[config._config_file], dict(section='vault', key='username') ) or getpass.getuser() keyname = get_ini_config_value( - config._parser, + config._parsers[config._config_file], dict(section='vault', key='keyname') ) or 'ansible' |