[stable-2.6] Fix ansible-test unicode error with redact option.
(cherry picked from commit 2ef4ba3b4d
)
Co-authored-by: Matt Clay <matt@mystile.com>
This commit is contained in:
parent
2fab4dd204
commit
126b68591d
1 changed files with 2 additions and 2 deletions
|
@ -300,7 +300,7 @@ class AnsibleCoreCI(object):
|
|||
)
|
||||
|
||||
if self.connection.password:
|
||||
display.sensitive.add(self.connection.password)
|
||||
display.sensitive.add(str(self.connection.password))
|
||||
|
||||
status = 'running' if self.connection.running else 'starting'
|
||||
|
||||
|
@ -452,7 +452,7 @@ class AnsibleCoreCI(object):
|
|||
:type config: dict[str, str]
|
||||
:rtype: bool
|
||||
"""
|
||||
self.instance_id = config['instance_id']
|
||||
self.instance_id = str(config['instance_id'])
|
||||
self.endpoint = config['endpoint']
|
||||
self.started = True
|
||||
|
||||
|
|
Loading…
Reference in a new issue