Fix access before assignment in zuul streamer

For local non-command and non-shell tasks there is an access to
stdout_lines which is not assigned before.

Change-Id: Ifaa88a5b7399514afd1a9babe195a70a4a0e9fae
This commit is contained in:
Tobias Henkel 2017-06-20 13:05:10 +02:00
parent a9dcf45a1c
commit 9ca3f55664
1 changed files with 4 additions and 4 deletions

View File

@ -199,10 +199,10 @@ class CallbackModule(default.CallbackModule):
self._stop_streamers()
if result._task.action in ('command', 'shell'):
stdout_lines = zuul_filter_result(result._result)
if is_localhost:
for line in stdout_lines:
ts, ln = (x.strip() for x in line.split(' | ', 1))
self._log("localhost | %s " % ln, ts=ts)
if is_localhost:
for line in stdout_lines:
ts, ln = (x.strip() for x in line.split(' | ', 1))
self._log("localhost | %s " % ln, ts=ts)
def v2_runner_on_failed(self, result, ignore_errors=False):
self._process_result_for_localhost(result)