ansible-test: vcenter+Worldstream: hide password

Hide the temporary password when `ansible-test` is called with the
`--redact` parameter.
This commit is contained in:
Gonéri Le Bouder 2019-08-29 13:24:25 -04:00
parent 7dbd6116d8
commit 8e22a60f97

View file

@ -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)