Update vault-keyring to ConfigManager internals (#41967)

Fix failure since ConfigManager changes
This commit is contained in:
Yves Martin 2018-08-22 19:09:22 +02:00 committed by Brian Coca
parent 2b9d4b9253
commit 2f9a5a75a8

View file

@ -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'