mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #15008 from qqo/devel
fix TypeError: coercing to Unicode: need string or buffer, AnsiblePar…
This commit is contained in:
commit
c824837a3f
1 changed files with 2 additions and 1 deletions
|
@ -29,6 +29,7 @@ from ansible.playbook.task import Task
|
|||
from ansible.plugins import action_loader
|
||||
from ansible.plugins.strategy import StrategyBase
|
||||
from ansible.template import Templar
|
||||
from ansible.utils.unicode import to_unicode
|
||||
|
||||
try:
|
||||
from __main__ import display
|
||||
|
@ -330,7 +331,7 @@ class StrategyModule(StrategyBase):
|
|||
for host in included_file._hosts:
|
||||
self._tqm._failed_hosts[host.name] = True
|
||||
iterator.mark_host_failed(host)
|
||||
display.error(e, wrap_text=False)
|
||||
display.error(to_unicode(e), wrap_text=False)
|
||||
include_failure = True
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in a new issue