runtime: qemu: tdx: Add omitempty to QuoteGenerationSocket

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 <fabiano@fidencio.org>
This commit is contained in:
Fabiano Fidêncio
2024-09-06 15:00:23 +02:00
parent 7818484120
commit 65a4562050

View File

@@ -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"`
}