From ba46b15826fb267dc7faa960e8c1ea121fd2df4f Mon Sep 17 00:00:00 2001 From: qqo Date: Thu, 17 Mar 2016 00:56:47 +0300 Subject: [PATCH] fix TypeError: coercing to Unicode: need string or buffer, AnsibleParserError found --- lib/ansible/plugins/strategy/linear.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/strategy/linear.py b/lib/ansible/plugins/strategy/linear.py index 0d4faf61493..750f1540516 100644 --- a/lib/ansible/plugins/strategy/linear.py +++ b/lib/ansible/plugins/strategy/linear.py @@ -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