[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>
This commit is contained in:
Matt Clay 2019-09-16 20:44:15 -07:00 committed by Toshio Kuratomi
parent dec03d06c8
commit 23c33ccb38

View file

@ -71,6 +71,9 @@ class AwsCloudProvider(CloudProvider):
REGION='us-east-1', REGION='us-east-1',
) )
display.sensitive.add(values['SECRET_KEY'])
display.sensitive.add(values['SECURITY_TOKEN'])
config = self._populate_config_template(config, values) config = self._populate_config_template(config, values)
self._write_config(config) self._write_config(config)