From a7f89cac63d22c2b33f7ce7c6f0846c47e77d8a8 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 0d4faf6149..750f154051 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