Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vapao committed Sep 6, 2021
1 parent dba7b15 commit ceba689
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spug_api/libs/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def exec_command_with_stream(self, command, environment=None):
exit_code, line = -1, ''
while True:
line = channel.recv(8196).decode()
if not line:
break
match = self.regex.search(line)
if match:
exit_code = int(line.rsplit()[-1])
Expand Down

0 comments on commit ceba689

Please sign in to comment.