diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-11 20:17:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-11 20:17:19 -0700 |
commit | b31000df35079c6ac79eac2b6c235f8266032f08 (patch) | |
tree | 8b16797e0816fdd56c8b6052420eb952ecc6f601 | |
parent | 54dce001cce131bbbdcf16512a4722e080561fc7 (diff) | |
parent | 02644eac0dc16de8ec9ba22f293667b25618db80 (diff) | |
download | podman-b31000df35079c6ac79eac2b6c235f8266032f08.tar.gz podman-b31000df35079c6ac79eac2b6c235f8266032f08.tar.bz2 podman-b31000df35079c6ac79eac2b6c235f8266032f08.zip |
Merge pull request #9984 from afbjorklund/ssh-panic
[NO TESTS NEEDED] Fix panic when not giving a machine name for ssh
-rw-r--r-- | cmd/podman/machine/ssh.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/machine/ssh.go b/cmd/podman/machine/ssh.go index 504fcbe46..ecc6d3b82 100644 --- a/cmd/podman/machine/ssh.go +++ b/cmd/podman/machine/ssh.go @@ -78,7 +78,7 @@ func ssh(cmd *cobra.Command, args []string) error { vm, err = qemu.LoadVMByName(vmName) } if err != nil { - return errors.Wrapf(err, "vm %s not found", args[0]) + return errors.Wrapf(err, "vm %s not found", vmName) } return vm.SSH(vmName, sshOpts) } |