Update vault-keyring to ConfigManager internals (#41967)

Fix failure since ConfigManager changes
pull/44523/head
Yves Martin 6 years ago committed by Brian Coca
parent 2b9d4b9253
commit 2f9a5a75a8

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

Loading…
Cancel
Save