fix file open mode

This commit is contained in:
Mike McLean 2019-03-02 15:58:49 -05:00
parent 3b86d7f247
commit 01b0a41639
3 changed files with 4 additions and 4 deletions

View file

@ -153,7 +153,7 @@ def log_output(session, path, args, outfile, uploadpath, cwd=None, logerror=0, a
if not outfd:
try:
outfd = open(outfile, 'r')
outfd = open(outfile, 'rb')
except IOError:
# will happen if the forked process has not created the logfile yet
continue