Skip to content

Commit 4fbc4c8

Browse files
committed
fix: json for new qemu types
1 parent 4334991 commit 4fbc4c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

api/qemu_type.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,9 @@ type VirtualMachineConfig struct {
469469
EfiDisk0 int8 `json:"efidisk0,omitempty"`
470470
Freeze int8 `json:"freeze,omitempty"`
471471
HookScript string `json:"hookscript,omitempty"`
472-
HostPci
473-
HotPlug string `json:"hotplug,omitempty"`
474-
HugePages string `json:"hugepages,omitempty"`
472+
HostPci `json:"-"`
473+
HotPlug string `json:"hotplug,omitempty"`
474+
HugePages string `json:"hugepages,omitempty"`
475475
// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
476476
// Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.
477477
// Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
@@ -495,9 +495,9 @@ type VirtualMachineConfig struct {
495495
// cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
496496
NameServer string `json:"nameserver,omitempty"`
497497
// network device
498-
Net `json:"-"`
499-
Numa int8 `json:"numa,omitempty"`
500-
NumaS
498+
Net `json:"-"`
499+
Numa int8 `json:"numa,omitempty"`
500+
NumaS `json:"-"`
501501
// specifies whether a VM will be started during system bootup
502502
OnBoot int8 `json:"onboot,omitempty"`
503503
// quest OS

0 commit comments

Comments
 (0)