mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
now validate that we do get a vault password
This commit is contained in:
parent
bdceb154e5
commit
e153f76c95
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ class VaultCLI(CLI):
|
||||||
elif self.options.ask_vault_pass:
|
elif self.options.ask_vault_pass:
|
||||||
self.vault_pass, _= self.ask_vault_passwords(ask_vault_pass=True, ask_new_vault_pass=False, confirm_new=False)
|
self.vault_pass, _= self.ask_vault_passwords(ask_vault_pass=True, ask_new_vault_pass=False, confirm_new=False)
|
||||||
|
|
||||||
|
if not self.vault_pass:
|
||||||
|
raise AnsibleOptionsError("A password is required to use Ansible's Vault")
|
||||||
|
|
||||||
self.execute()
|
self.execute()
|
||||||
|
|
||||||
def execute_create(self):
|
def execute_create(self):
|
||||||
|
|
Loading…
Reference in a new issue