Skip to content

Commit

Permalink
ansible-test: vcenter+Worldstream: hide password
Browse files Browse the repository at this point in the history
Hide the temporary password when `ansible-test` is called with the
`--redact` parameter.
  • Loading branch information
goneri authored and anas-shami committed Sep 23, 2019
1 parent 5756419 commit b1023e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/lib/ansible_test/_internal/cloud/vcenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ def _setup_dynamic_baremetal(self):
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)

Expand Down

0 comments on commit b1023e3

Please sign in to comment.