From 65a45620501c9e0df2a97621f3591e051b3aeed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 6 Sep 2024 15:00:23 +0200 Subject: [PATCH] runtime: qemu: tdx: Add `omitempty` to QuoteGenerationSocket MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I know right now we're always passing a value for that, but this doesn't really have to be set unless attestation is used. Thus, let's also omit it in case it's empty. Signed-off-by: Fabiano FidĂȘncio --- src/runtime/pkg/govmm/qemu/qemu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/pkg/govmm/qemu/qemu.go b/src/runtime/pkg/govmm/qemu/qemu.go index 5eace0f0a4..e1070b7319 100644 --- a/src/runtime/pkg/govmm/qemu/qemu.go +++ b/src/runtime/pkg/govmm/qemu/qemu.go @@ -440,7 +440,7 @@ type TdxQomObject struct { MrConfigId string `json:"mrconfigid,omitempty"` MrOwner string `json:"mrowner,omitempty"` MrOwnerConfig string `json:"mrownerconfig,omitempty"` - QuoteGenerationSocket SocketAddress `json:"quote-generation-socket"` + QuoteGenerationSocket SocketAddress `json:"quote-generation-socket,omitempty"` Debug *bool `json:"debug,omitempty"` }