Show actual command in output (#9224)

This commit is contained in:
Ian Rodney 2020-06-30 16:00:28 -07:00 committed by GitHub
parent be647b69ab
commit 4ce4be5c54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -259,9 +259,9 @@ class SSHCommandRunner:
"{}@{}".format(self.ssh_user, self.ssh_ip)
]
if cmd:
final_cmd += with_interactive(cmd)
logger.info(self.log_prefix +
"Running {}".format(" ".join(final_cmd)))
final_cmd += with_interactive(cmd)
else:
# We do this because `-o ControlMaster` causes the `-N` flag to
# still create an interactive shell in some ssh versions.