ansible-test: vcenter+Worldstream: hide password
Hide the temporary password when `ansible-test` is called with the `--redact` parameter.
This commit is contained in:
parent
7dbd6116d8
commit
8e22a60f97
1 changed files with 3 additions and 0 deletions
|
@ -195,6 +195,9 @@ class VcenterProvider(CloudProvider):
|
||||||
aci.wait(iterations=160)
|
aci.wait(iterations=160)
|
||||||
|
|
||||||
data = aci.get().response_json.get('data')
|
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)
|
config = self._populate_config_template(config, data)
|
||||||
self._write_config(config)
|
self._write_config(config)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue