From 8e22a60f976d0435a1ed6ccda74fadf53a546b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Thu, 29 Aug 2019 13:24:25 -0400 Subject: [PATCH] ansible-test: vcenter+Worldstream: hide password Hide the temporary password when `ansible-test` is called with the `--redact` parameter. --- test/lib/ansible_test/_internal/cloud/vcenter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/lib/ansible_test/_internal/cloud/vcenter.py b/test/lib/ansible_test/_internal/cloud/vcenter.py index a8483ae489b..79b1e96926a 100644 --- a/test/lib/ansible_test/_internal/cloud/vcenter.py +++ b/test/lib/ansible_test/_internal/cloud/vcenter.py @@ -195,6 +195,9 @@ class VcenterProvider(CloudProvider): aci.wait(iterations=160) data = aci.get().response_json.get('data') + for key, value in data.items(): + if key.endswith('PASSWORD'): + display.sensitive.add(value) config = self._populate_config_template(config, data) self._write_config(config)