From 62a1efa0c6712bfea794d870f22bd178b1452e20 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 29 Jun 2015 08:33:45 -0700 Subject: [PATCH] Fix traceback in on_unreachable Fixes #10960 --- lib/ansible/callbacks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 39d3a8d4428..96f213cd6de 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -392,6 +392,7 @@ class CliRunnerCallbacks(DefaultRunnerCallbacks): def on_unreachable(self, host, res): if type(res) == dict: res = res.get('msg','') + res = to_bytes(res) display("%s | FAILED => %s" % (host, res), stderr=True, color='red', runner=self.runner) if self.options.tree: utils.write_tree_file(