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:
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():
|
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'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue