mirror of https://github.com/containers/podman.git
Merge pull request #9984 from afbjorklund/ssh-panic
[NO TESTS NEEDED] Fix panic when not giving a machine name for ssh
This commit is contained in:
commit
b31000df35
|
@ -78,7 +78,7 @@ func ssh(cmd *cobra.Command, args []string) error {
|
||||||
vm, err = qemu.LoadVMByName(vmName)
|
vm, err = qemu.LoadVMByName(vmName)
|
||||||
}
|
}
|
||||||
if err != nil {
|
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)
|
return vm.SSH(vmName, sshOpts)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue