From 23c33ccb3830fa0b29df898eb34c305df6419163 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 16 Sep 2019 20:44:15 -0700 Subject: [PATCH] [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 --- test/runner/lib/cloud/aws.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/runner/lib/cloud/aws.py b/test/runner/lib/cloud/aws.py index 9844347171e..b1c92fbb5bd 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)