don't use codecs.open for syncing isolated stdout data

see: https://github.com/ansible/tower/issues/2315
This commit is contained in:
Ryan Petrello
2018-07-05 14:55:21 -04:00
parent 90d57300da
commit 172defa0d4
2 changed files with 43 additions and 1 deletions

View File

@@ -318,7 +318,7 @@ class IsolatedManager(object):
path = self.path_to('artifacts', 'stdout')
if os.path.exists(path):
with codecs.open(path, 'r', encoding='utf-8') as f:
with open(path, 'r') as f:
f.seek(seek)
for line in f:
self.stdout_handle.write(line)