Skip to content

Commit da3bf33

Browse files
committed
ssh: log command before launching it
... helps debugging quite a bit. Signed-off-by: Yann Dirson <[email protected]>
1 parent bd8ba6b commit da3bf33

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
@@ -95,13 +95,13 @@ def _ssh(hostname_or_ip, cmd, check, simple_output, suppress_fingerprint_warning
9595
check=False
9696
)
9797

98+
logging.debug(f"[{hostname_or_ip}] {command}")
9899
process = subprocess.Popen(
99100
ssh_cmd,
100101
shell=True,
101102
stdout=subprocess.PIPE,
102103
stderr=subprocess.STDOUT
103104
)
104-
logging.debug(f"[{hostname_or_ip}] {command}")
105105
if windows_background:
106106
return True, process
107107

0 commit comments

Comments
 (0)