Skip to content

Commit 4340f64

Browse files
committed
Merge pull request #3403 from mboersma/fix-paramiko-reads
fix(controller): read from SSH channel before checking exit status
2 parents ec1f8f6 + a7fd7f8 commit 4340f64

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

controller/scheduler/fleet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@ def _do_ssh(cmd):
268268
chan.get_pty()
269269
out = chan.makefile()
270270
chan.exec_command(cmd)
271-
rc, output = chan.recv_exit_status(), out.read()
271+
output = out.read()
272+
rc = chan.recv_exit_status()
272273
return rc, output
273274

274275
# wait for container to launch

0 commit comments

Comments
 (0)