Skip to content

Commit

Permalink
Add short option for --ask-vault-pass (ansible#80527)
Browse files Browse the repository at this point in the history
  • Loading branch information
knumskull authored Aug 31, 2023
1 parent e1e0e27 commit ae69b28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- cli - Added short option '-J' for asking for vault password (https://github.com/ansible/ansible/issues/80523).
2 changes: 1 addition & 1 deletion lib/ansible/cli/arguments/option_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def add_vault_options(parser):
parser.add_argument('--vault-id', default=[], dest='vault_ids', action='append', type=str,
help='the vault identity to use')
base_group = parser.add_mutually_exclusive_group()
base_group.add_argument('--ask-vault-password', '--ask-vault-pass', default=C.DEFAULT_ASK_VAULT_PASS, dest='ask_vault_pass', action='store_true',
base_group.add_argument('-J', '--ask-vault-password', '--ask-vault-pass', default=C.DEFAULT_ASK_VAULT_PASS, dest='ask_vault_pass', action='store_true',
help='ask for vault password')
base_group.add_argument('--vault-password-file', '--vault-pass-file', default=[], dest='vault_password_files',
help="vault password file", type=unfrack_path(follow=False), action='append')

0 comments on commit ae69b28

Please sign in to comment.