Skip to content

Commit

Permalink
encoding fix Azure#3
Browse files Browse the repository at this point in the history
  • Loading branch information
hglkrijger committed Jul 24, 2018
1 parent c72a84a commit 921cbd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurelinuxagent/common/utils/processutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def capture_from_process_modern(process, cmd, timeout):
raise ExtensionError("Non-zero exit code: {0}, {1}".format(return_code, cmd))

stderr = b''
stdout = b'child process did not return within {0} sec, cannot collect stdout'.format(timeout)
stdout = b'cannot collect stdout'

except OSError as e:
_destroy_process(process, signal.SIGKILL)
Expand Down Expand Up @@ -154,7 +154,7 @@ def capture_from_process_pre_33(process, cmd, timeout):
raise ExtensionError("Non-zero exit code: {0}, {1}".format(return_code, cmd))

stderr = b''
stdout = b'child process did not return within {0} sec, cannot collect stdout'.format(timeout)
stdout = b'cannot collect stdout'

return stdout, stderr

Expand Down

0 comments on commit 921cbd2

Please sign in to comment.