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

pull/15204/head
qqo 9 years ago committed by Brian Coca
parent d011bbf8f2
commit ba46b15826

@ -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

Loading…
Cancel
Save