summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2019-09-16 20:44:15 -0700
committerToshio Kuratomi <a.badger@gmail.com>2019-09-17 13:31:39 -0700
commit23c33ccb3830fa0b29df898eb34c305df6419163 (patch)
tree9c080acd1eb91a17f608589b8e26c492c8896253
parentdec03d06c894001611af0b3cb37801fa49ea214c (diff)
downloadansible-23c33ccb3830fa0b29df898eb34c305df6419163.tar.gz
[stable-2.7] Mark AWS credentials in ansible-test as sensitive.
This avoids displaying the credentials in CI when retrying tests at maximum verbosity. (cherry picked from commit b73e772) Co-authored-by: Matt Clay <matt@mystile.com>
-rw-r--r--test/runner/lib/cloud/aws.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/runner/lib/cloud/aws.py b/test/runner/lib/cloud/aws.py
index 9844347171..b1c92fbb5b 100644
--- a/test/runner/lib/cloud/aws.py
+++ b/test/runner/lib/cloud/aws.py
@@ -71,6 +71,9 @@ class AwsCloudProvider(CloudProvider):
REGION='us-east-1',
)
+ display.sensitive.add(values['SECRET_KEY'])
+ display.sensitive.add(values['SECURITY_TOKEN'])
+
config = self._populate_config_template(config, values)
self._write_config(config)