From f339184e292a402b76733eb034ff4ff357cd8326 Mon Sep 17 00:00:00 2001 From: Abhijit Menon-Sen Date: Thu, 26 Nov 2015 19:26:03 +0530 Subject: [PATCH] Use CLI.expand_tilde also for the vault --output file --- lib/ansible/cli/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/cli/__init__.py b/lib/ansible/cli/__init__.py index 76bbc6b8a82..da4d1b92d3d 100644 --- a/lib/ansible/cli/__init__.py +++ b/lib/ansible/cli/__init__.py @@ -250,7 +250,8 @@ class CLI(object): parser.add_option('--new-vault-password-file', dest='new_vault_password_file', help="new vault password file for rekey", action="callback", callback=CLI.expand_tilde, type=str) parser.add_option('--output', default=None, dest='output_file', - help='output file name for encrypt or decrypt; use - for stdout') + help='output file name for encrypt or decrypt; use - for stdout', + action="callback", callback=CLI.expand_tilde, type=str) if subset_opts: parser.add_option('-t', '--tags', dest='tags', default='all',