From 02644eac0dc16de8ec9ba22f293667b25618db80 Mon Sep 17 00:00:00 2001 From: Anders F Björklund Date: Fri, 9 Apr 2021 17:12:40 +0200 Subject: Fix panic when not giving a machine name for ssh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders F Björklund --- cmd/podman/machine/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/podman/machine') 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) } -- cgit v1.2.3-54-g00ecf