1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fix TypeError: coercing to Unicode: need string or buffer, AnsibleParserError found

This commit is contained in:
qqo 2016-03-17 00:56:47 +03:00
parent 85e843baee
commit a7f89cac63

View file

@ -29,6 +29,7 @@ from ansible.playbook.task import Task
from ansible.plugins import action_loader from ansible.plugins import action_loader
from ansible.plugins.strategy import StrategyBase from ansible.plugins.strategy import StrategyBase
from ansible.template import Templar from ansible.template import Templar
from ansible.utils.unicode import to_unicode
try: try:
from __main__ import display from __main__ import display
@ -330,7 +331,7 @@ class StrategyModule(StrategyBase):
for host in included_file._hosts: for host in included_file._hosts:
self._tqm._failed_hosts[host.name] = True self._tqm._failed_hosts[host.name] = True
iterator.mark_host_failed(host) iterator.mark_host_failed(host)
display.error(e, wrap_text=False) display.error(to_unicode(e), wrap_text=False)
include_failure = True include_failure = True
continue continue