Browse Source

Merge "Ansible-runner is failing when passing host to display"

changes/36/763136/6
Zuul 7 months ago
committed by Gerrit Code Review
parent
commit
9835a32ab7
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      tripleo_ansible/ansible_plugins/strategy/tripleo_base.py
  2. +1
    -1
      tripleo_ansible/ansible_plugins/strategy/tripleo_free.py

+ 3
- 0
tripleo_ansible/ansible_plugins/strategy/tripleo_base.py 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):


+ 1
- 1
tripleo_ansible/ansible_plugins/strategy/tripleo_free.py 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


Loading…
Cancel
Save