pkg/machine/qemu: fix ST1016 linter warning on freebsd

> pkg/machine/qemu/stubber.go:92:23: ST1016: methods on the same type should have the same receiver name (seen 1x "v", 25x "q") (staticcheck)
> func (q *QEMUStubber) CreateVM(opts define.CreateVMOpts, mc *vmconfigs.MachineConfig, builder *ignition.IgnitionBuilder) error {
>                       ^

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2025-03-29 23:46:45 -07:00
parent c860e67884
commit 18fdbaee80
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ var (
QemuCommand = "qemu-system-x86_64"
)
func (v *QEMUStubber) addArchOptions(_ *setNewMachineCMDOpts) []string {
func (q *QEMUStubber) addArchOptions(_ *setNewMachineCMDOpts) []string {
opts := []string{"-machine", "q35,accel=hvf:tcg", "-cpu", "host"}
return opts
}

View File

@ -6,7 +6,7 @@ var (
QemuCommand = "qemu-system-aarch64"
)
func (v *QEMUStubber) addArchOptions(_ *setNewMachineCMDOpts) []string {
func (q *QEMUStubber) addArchOptions(_ *setNewMachineCMDOpts) []string {
opts := []string{
"-machine", "virt",
"-accel", "tcg",