Merge "Ansible-runner is failing when passing host to display" into stable/victoria
This commit is contained in:
commit
fec1bacbe9
|
@ -51,6 +51,9 @@ class TripleoBase(StrategyBase):
|
||||||
self._has_hosts_cache_all = False
|
self._has_hosts_cache_all = False
|
||||||
|
|
||||||
def _print(self, msg, host=None, level=1):
|
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)
|
display.verbose(msg, host=host, caplevel=level)
|
||||||
|
|
||||||
def _debug(self, msg, host=None):
|
def _debug(self, msg, host=None):
|
||||||
|
|
|
@ -147,7 +147,7 @@ class StrategyModule(BASE.TripleoBase):
|
||||||
|
|
||||||
def _advance_host(self, host, task):
|
def _advance_host(self, host, task):
|
||||||
"""Advance the host's task as necessary"""
|
"""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()
|
host_name = host.get_name()
|
||||||
|
|
||||||
# build get_vars call params
|
# build get_vars call params
|
||||||
|
|
Loading…
Reference in New Issue