Skip to content

Commit

Permalink
Merge e15ff19 into 718f2b7
Browse files Browse the repository at this point in the history
  • Loading branch information
andrirad committed Dec 6, 2017
2 parents 718f2b7 + e15ff19 commit 6e9f655
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions winrm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def run_cmd(self, command, args=()):
rs = Response(self.protocol.get_command_output(shell_id, command_id))
self.protocol.cleanup_command(shell_id, command_id)
self.protocol.close_shell(shell_id)
if not isinstance(rs.std_err, str):
rs.std_err = rs.std_err.decode()
if not isinstance(rs.std_out, str):
rs.std_out = rs.std_out.decode()
return rs

def run_ps(self, script):
Expand Down

0 comments on commit 6e9f655

Please sign in to comment.