Skip to content

Commit

Permalink
show podman machine ssh command line
Browse files Browse the repository at this point in the history
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 containers#10798

Signed-off-by: Brent Baude <bbaude@redhat.com>
  • Loading branch information
baude authored and mheon committed Aug 11, 2021
1 parent 4b42265 commit d746a7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/machine/qemu/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d746a7e

Please sign in to comment.