Commit 8ed9c785 authored by Marco Mariani's avatar Marco Mariani

grid: avoid spurious empty lines in Popen() stdout/log

parent 4929673f
...@@ -109,8 +109,9 @@ class SlapPopen(subprocess.Popen): ...@@ -109,8 +109,9 @@ class SlapPopen(subprocess.Popen):
line = self.stdout.readline() line = self.stdout.readline()
if line == '' and self.poll() is not None: if line == '' and self.poll() is not None:
break break
output_lines.append(line) if line:
logger.info(line.rstrip('\n')) output_lines.append(line)
logger.info(line.rstrip('\n'))
self.output = ''.join(output_lines) self.output = ''.join(output_lines)
......
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