Update vault-keyring to ConfigManager internals (#41967)
Fix failure since ConfigManager changes
This commit is contained in:
parent
2b9d4b9253
commit
2f9a5a75a8
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue