summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorYves Martin <ymartin1040@gmail.com>2018-08-22 19:09:22 +0200
committerBrian Coca <bcoca@users.noreply.github.com>2018-08-22 19:09:22 +0200
commit2f9a5a75a890092d62fd64c489f95f1d66f827eb (patch)
tree6d8556904897018466306a5ed0096c50bf415963 /contrib
parentMore consistent Docker unit parsing (#16748) (diff)
downloadansible-2f9a5a75a890092d62fd64c489f95f1d66f827eb.tar.xz
ansible-2f9a5a75a890092d62fd64c489f95f1d66f827eb.zip
Update vault-keyring to ConfigManager internals (#41967)
Fix failure since ConfigManager changes
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/vault/vault-keyring.py4
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'