1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/cli
Adrian Likins 307be59092 Don't ask for password confirm on 'ansible-vault edit' (#30514)
* Don't ask for password confirm on 'ansible-vault edit'

This is to match the 2.3 behavior on:

        ansible-vault edit encrypted_file.yml

Previously, the above command would consider that a 'new password'
scenario and prompt accordingly, ie:

        $ ansible-vault edit encrypted_file.yml
        New Password:
        Confirm New Password:

The bug was cause by 'create_new_password' being used for
'edit' action. This also causes the previous implicit 'auto prompt'
to get triggered and prompt the user.

Fix is to make auto prompt explicit in the calling code to handle
the 'edit' case where we want to auto prompt but we do not want
to request a password confirm.

Fixes #30491
2017-09-19 17:39:51 -04:00
..
test_data/role_skeleton Fix spelling mistakes (comments only) (#25564) 2017-06-12 07:55:19 +01:00
__init__.py
test_cli.py Don't ask for password confirm on 'ansible-vault edit' (#30514) 2017-09-19 17:39:51 -04:00
test_console.py Fix error on 'help module' in ansible-console (#19390) 2016-12-20 15:50:29 -05:00
test_galaxy.py fixed issue with paths separator and others 2017-06-15 14:53:54 -04:00
test_playbook.py Transition inventory into plugins (#23001) 2017-05-23 17:16:49 -04:00
test_vault.py Support multiple vault passwords (#22756) 2017-07-28 15:20:58 -04:00