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:
James E. Blair 2017-06-30 17:29:33 -07:00
parent 6515def66d
commit 3fabd44226
1 changed files with 2 additions and 2 deletions

View File

@ -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: