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
commit b31000df35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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