Commit 0b035a4e by James Cammarata

Unicode in result debug statements caused a traceback

parent ae6d9ebf
...@@ -59,7 +59,7 @@ class ResultProcess(multiprocessing.Process): ...@@ -59,7 +59,7 @@ class ResultProcess(multiprocessing.Process):
super(ResultProcess, self).__init__() super(ResultProcess, self).__init__()
def _send_result(self, result): def _send_result(self, result):
debug("sending result: %s" % (result,)) debug(u"sending result: %s" % ([unicode(x) for x in result],))
self._final_q.put(result, block=False) self._final_q.put(result, block=False)
debug("done sending result") debug("done sending result")
......
...@@ -155,7 +155,7 @@ class StrategyBase: ...@@ -155,7 +155,7 @@ class StrategyBase:
while not self._final_q.empty() and not self._tqm._terminated: while not self._final_q.empty() and not self._tqm._terminated:
try: try:
result = self._final_q.get(block=False) result = self._final_q.get(block=False)
debug("got result from result worker: %s" % (result,)) debug("got result from result worker: %s" % ([unicode(x) for x in result],))
# all host status messages contain 2 entries: (msg, task_result) # all host status messages contain 2 entries: (msg, task_result)
if result[0] in ('host_task_ok', 'host_task_failed', 'host_task_skipped', 'host_unreachable'): if result[0] in ('host_task_ok', 'host_task_failed', 'host_task_skipped', 'host_unreachable'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment