Merge "Ansible-runner is failing when passing host to display" into stable/victoria

This commit is contained in:
Zuul 2020-12-22 22:09:06 +00:00 committed by Gerrit Code Review
commit fec1bacbe9
2 changed files with 4 additions and 1 deletions

View File

@ -51,6 +51,9 @@ class TripleoBase(StrategyBase):
self._has_hosts_cache_all = False
def _print(self, msg, host=None, level=1):
# host needs to be a string or bad things happen. LP#1904917
if host and not isinstance(host, str):
host = None
display.verbose(msg, host=host, caplevel=level)
def _debug(self, msg, host=None):

View File

@ -147,7 +147,7 @@ class StrategyModule(BASE.TripleoBase):
def _advance_host(self, host, task):
"""Advance the host's task as necessary"""
self._debug('_advance_host {}'.format(host), host)
self._debug('_advance_host {}'.format(host))
host_name = host.get_name()
# build get_vars call params