Skip to content

Commit

Permalink
SSH module is not showing live stdout/stderr
Browse files Browse the repository at this point in the history
The IOBuffer object that is meant to show realtime messages coming from
the SSH commands was not passed to the event loop. Instead, it was
called as a normal callback. asyncio.ensure_future() is now used to
ensure that task will run.
  • Loading branch information
acerv committed Mar 14, 2024
1 parent b63ad1b commit 36998fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libkirk/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def data_received(self, data, _) -> None:
self._output.append(data)

if self._iobuffer:
self._iobuffer.write(data)
asyncio.ensure_future(self._iobuffer.write(data))

if "Kernel panic" in data:
self._panic = True
Expand Down

0 comments on commit 36998fc

Please sign in to comment.