Skip to content

Commit

Permalink
Make sure CommandReader gets RC (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Zmeskal authored May 11, 2020
1 parent c43968b commit da49a0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rrmngmnt/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ def read_lines(self):
while True:
line = out.readline()
self.out += line
if not line:
if line:
yield line.strip('\n')
continue
if command.rc is not None:
break
yield line.strip('\n')
self.rc = command.rc
self.err = err.read()

0 comments on commit da49a0f

Please sign in to comment.