From f66ba9274530c9057db4857c0f2860b146e4c316 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sun, 19 Jul 2015 22:24:20 -0400 Subject: [PATCH] now vault prompts for password if no password file was given, as in 1.x --- lib/ansible/cli/vault.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/cli/vault.py b/lib/ansible/cli/vault.py index a56a2205a8e..170f0cc1ca8 100644 --- a/lib/ansible/cli/vault.py +++ b/lib/ansible/cli/vault.py @@ -74,7 +74,7 @@ class VaultCLI(CLI): if self.options.vault_password_file: # read vault_pass from a file self.vault_pass = CLI.read_vault_password_file(self.options.vault_password_file) - elif self.options.ask_vault_pass: + else: self.vault_pass, _= self.ask_vault_passwords(ask_vault_pass=True, ask_new_vault_pass=False, confirm_new=False) if not self.vault_pass: