mirror of
https://github.com/containers/podman.git
synced 2025-07-03 09:17:15 +08:00
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:
@ -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
|
||||
}
|
||||
|
@ -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",
|
||||
|
Reference in New Issue
Block a user