Fix py3 issue with command module
This caused us to fail to log lines when running commands on localhost (because in that situation, we use python3). Change-Id: If9f5cf6ed62cb24a6fc16ebf189d36a752fa66d5
This commit is contained in:
parent
6515def66d
commit
3fabd44226
|
@ -172,8 +172,8 @@ def follow(fd, log_uuid):
|
|||
if not line:
|
||||
break
|
||||
_log_lines.append(line)
|
||||
if not line.endswith('\n'):
|
||||
line += '\n'
|
||||
if not line.endswith(b'\n'):
|
||||
line += b'\n'
|
||||
newline_warning = True
|
||||
console.addLine(line)
|
||||
if newline_warning:
|
||||
|
|
Loading…
Reference in New Issue