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:
parent
a9dcf45a1c
commit
9ca3f55664
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue