summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_internal/cli.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2019-09-16 22:40:58 -0700
committerMatt Clay <matt@mystile.com>2019-09-17 08:09:17 -0700
commit0631e057e9124af1d1676def456d49c6e0c16404 (patch)
treed9bba5b1b24171b51505126ed19f2678bf28e08e /test/lib/ansible_test/_internal/cli.py
parent84d9b3e58986d70ca64539e816e342a9d7d0b888 (diff)
downloadansible-0631e057e9124af1d1676def456d49c6e0c16404.tar.gz
Redact sensitive values by default in ansible-test
Diffstat (limited to 'test/lib/ansible_test/_internal/cli.py')
-rw-r--r--test/lib/ansible_test/_internal/cli.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lib/ansible_test/_internal/cli.py b/test/lib/ansible_test/_internal/cli.py
index 6b2dd72b17..1d7deedfbd 100644
--- a/test/lib/ansible_test/_internal/cli.py
+++ b/test/lib/ansible_test/_internal/cli.py
@@ -206,8 +206,15 @@ def parse_args():
common.add_argument('--redact',
dest='redact',
action='store_true',
+ default=True,
help='redact sensitive values in output')
+ common.add_argument('--no-redact',
+ dest='redact',
+ action='store_false',
+ default=False,
+ help='show sensitive values in output')
+
common.add_argument('--check-python',
choices=SUPPORTED_PYTHON_VERSIONS,
help=argparse.SUPPRESS)