From 705fbe3a5e6c97c4ab203ae328e69b2fdd521253 Mon Sep 17 00:00:00 2001 From: Johann Queuniet Date: Thu, 16 Nov 2023 15:37:11 +0100 Subject: [PATCH] Fix qemu config memory field parsing Following upstream API breakage in qemu-server 8.0.8 Reference commit: 7f8c808772979f274cdfac1dc7264771a3b7a7ae --- types.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types.go b/types.go index 67ac298..9106618 100644 --- a/types.go +++ b/types.go @@ -352,10 +352,10 @@ type VirtualMachineConfig struct { Affinity string `json:"affinity,omitempty"` // Qemu memory specs - Numa int `json:"numa,omitempty"` - Memory int `json:"memory,omitempty"` - Hugepages string `json:"hugepages,omitempty"` - Balloon int `json:"balloon,omitempty"` + Numa int `json:"numa,omitempty"` + Memory StringOrInt `json:"memory,omitempty"` // See commit 7f8c808772979f274cdfac1dc7264771a3b7a7ae on qemu-server + Hugepages string `json:"hugepages,omitempty"` + Balloon int `json:"balloon,omitempty"` // Other Qemu devices VGA string `json:"vga,omitempty"`