Skip to content

Commit 0ec67e8

Browse files
committed
ssh: stop returning an unused Popen object in "background" mode
When we launch a process "in background on server side" the local ssh process will exit very quickly and we won't need much from the Popen object, which was actually ignored in caller code. Signed-off-by: Yann Dirson <[email protected]>
1 parent 6f26fd9 commit 0ec67e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def _ssh(hostname_or_ip, cmd, check, simple_output, suppress_fingerprint_warning
9797
stderr=subprocess.STDOUT
9898
)
9999
if background:
100-
return True, process
100+
return True, None
101101

102102
stdout = []
103103
for line in iter(process.stdout.readline, b''):

0 commit comments

Comments
 (0)