mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Add option to hide sensitive ansible-test output.
This option is enabled automatically on Shippable.
This commit is contained in:
@@ -166,6 +166,8 @@ class AnsibleCoreCI(object):
|
||||
self.instance_id = str(uuid.uuid4())
|
||||
self.endpoint = None
|
||||
|
||||
display.sensitive.add(self.instance_id)
|
||||
|
||||
def _get_parallels_endpoints(self):
|
||||
"""
|
||||
:rtype: tuple[str]
|
||||
@@ -299,6 +301,9 @@ class AnsibleCoreCI(object):
|
||||
password=con.get('password'),
|
||||
)
|
||||
|
||||
if self.connection.password:
|
||||
display.sensitive.add(self.connection.password)
|
||||
|
||||
status = 'running' if self.connection.running else 'starting'
|
||||
|
||||
display.info('Status update: %s/%s on instance %s is %s.' %
|
||||
@@ -453,6 +458,8 @@ class AnsibleCoreCI(object):
|
||||
self.endpoint = config['endpoint']
|
||||
self.started = True
|
||||
|
||||
display.sensitive.add(self.instance_id)
|
||||
|
||||
return True
|
||||
|
||||
def _save(self):
|
||||
|
||||
Reference in New Issue
Block a user