community.general/lib/ansible/cli
Adrian Likins 309f54b709 Fix 'vault rekey' with vault secret env var
if ANSIBLE_VAULT_PASSWORD_FILE is set, 'ansible-vault rekey myvault.yml'
will fail to prompt for the new vault password file, and will use
None.

Fix is to split out 'ask_vault_passwords' into 'ask_vault_passwords'
and 'ask_new_vault_passwords' to make the logic simpler. And then
make sure new_vault_pass is always set for 'rekey', and if not, then
call ask_new_vault_passwords() to set it.

ask_vault_passwords() would return values for vault_pass and new
vault_pass, and vault cli previously would not prompt for new_vault_pass
if there was a vault_pass set via a vault password file.

Fixes #18247
2016-11-01 13:07:48 -04:00
..
__init__.py Fix 'vault rekey' with vault secret env var 2016-11-01 13:07:48 -04:00
adhoc.py Fix 'vault rekey' with vault secret env var 2016-11-01 13:07:48 -04:00
console.py Fix call of wrong super class 2016-10-17 14:53:03 -04:00
doc.py Quick ansible-doc fix -- don't run pager if there was an error (no text) 2016-10-13 15:10:47 -04:00
galaxy.py Remove extra display statements and add docs (#18229) 2016-10-28 00:38:39 -04:00
playbook.py Fix 'vault rekey' with vault secret env var 2016-11-01 13:07:48 -04:00
pull.py Refactor parsing of CLI args so that we can modify them in the base class 2016-10-06 10:46:58 -04:00
vault.py Fix 'vault rekey' with vault secret env var 2016-11-01 13:07:48 -04:00