ansible-test: vcenter+Worldstream: hide password

Hide the temporary password when `ansible-test` is called with the
`--redact` parameter.

(cherry picked from commit 8e22a60f97)
pull/62034/head
Gonéri Le Bouder 6 years ago committed by Toshio Kuratomi
parent 1cb40e1aed
commit 071201bf4f

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

Loading…
Cancel
Save