Fix exc on ansible-console --ask-vault-pass with empty password
Fixes #20502
This commit is contained in:
parent
d7615f68c4
commit
92a568c816
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ class ConsoleCLI(CLI, cmd.Cmd):
|
||||||
vault_pass = CLI.read_vault_password_file(self.options.vault_password_file, loader=self.loader)
|
vault_pass = CLI.read_vault_password_file(self.options.vault_password_file, loader=self.loader)
|
||||||
self.loader.set_vault_password(vault_pass)
|
self.loader.set_vault_password(vault_pass)
|
||||||
elif self.options.ask_vault_pass:
|
elif self.options.ask_vault_pass:
|
||||||
vault_pass = self.ask_vault_passwords()[0]
|
vault_pass = self.ask_vault_passwords()
|
||||||
self.loader.set_vault_password(vault_pass)
|
self.loader.set_vault_password(vault_pass)
|
||||||
|
|
||||||
self.variable_manager = VariableManager()
|
self.variable_manager = VariableManager()
|
||||||
|
|
Loading…
Reference in a new issue