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:
OpenShift Merge Robot
2021-04-11 20:17:19 -07:00
committed by GitHub

View File

@ -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)
}