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
diff --git a/zuul/ansible/library/command.py b/zuul/ansible/library/command.py
index 8bec502..00020c7 100644
--- a/zuul/ansible/library/command.py
+++ b/zuul/ansible/library/command.py
@@ -172,8 +172,8 @@
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: