1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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(): def main():
config = ConfigManager() config = ConfigManager()
username = get_ini_config_value( username = get_ini_config_value(
config._parser, config._parsers[config._config_file],
dict(section='vault', key='username') dict(section='vault', key='username')
) or getpass.getuser() ) or getpass.getuser()
keyname = get_ini_config_value( keyname = get_ini_config_value(
config._parser, config._parsers[config._config_file],
dict(section='vault', key='keyname') dict(section='vault', key='keyname')
) or 'ansible' ) or 'ansible'