aboutsummaryrefslogtreecommitdiff
path: root/pkg/machine/qemu
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2021-08-04 15:19:29 -0500
committerBrent Baude <bbaude@redhat.com>2021-08-05 12:38:21 -0500
commite52187e7fe29340220b42b5327f03856848358c1 (patch)
tree561ce586247be7ee8dc2cb5a805fb5e60098d3f6 /pkg/machine/qemu
parent1f0a24437d71f8fe2b2233a428202afcfe513666 (diff)
downloadpodman-e52187e7fe29340220b42b5327f03856848358c1.tar.gz
podman-e52187e7fe29340220b42b5327f03856848358c1.tar.bz2
podman-e52187e7fe29340220b42b5327f03856848358c1.zip
show podman machine ssh command line
A user contributed a one line PR that enabled logging the podman machine ssh command for debug. The user was not able to complete the submission so this PR replaces that. [NO TESTS NEEDED] Replaces #10798 Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/machine/qemu')
-rw-r--r--pkg/machine/qemu/machine.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index 0740a2b2c..7b1ebcb03 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -482,6 +482,8 @@ func (v *MachineVM) SSH(name string, opts machine.SSHOptions) error {
}
cmd := exec.Command("ssh", args...)
+ logrus.Debugf("Executing: ssh %v\n", args)
+
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Stdin = os.Stdin