mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
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:
@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user