summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders F Björklund <anders.f.bjorklund@gmail.com>2021-04-09 17:12:40 +0200
committerAnders F Björklund <anders.f.bjorklund@gmail.com>2021-04-09 17:58:01 +0200
commit02644eac0dc16de8ec9ba22f293667b25618db80 (patch)
tree0100056085af4e705441b8dd7c3496891f057d89
parent3a03c2ec71799727ea062faab0cc18050ec8c85e (diff)
downloadpodman-02644eac0dc16de8ec9ba22f293667b25618db80.tar.gz
podman-02644eac0dc16de8ec9ba22f293667b25618db80.tar.bz2
podman-02644eac0dc16de8ec9ba22f293667b25618db80.zip
Fix panic when not giving a machine name for ssh
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
-rw-r--r--cmd/podman/machine/ssh.go2
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)
}