From 92b087bfce51db4648e3229b855e8895cd71bec9 Mon Sep 17 00:00:00 2001 From: "Scott G. Miller" Date: Fri, 3 Jan 2025 22:43:33 -0500 Subject: [PATCH] undo reintroduction of loss of omitempty --- sdk/helper/keysutil/policy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/helper/keysutil/policy.go b/sdk/helper/keysutil/policy.go index bd7de795fab6..f712322083d3 100644 --- a/sdk/helper/keysutil/policy.go +++ b/sdk/helper/keysutil/policy.go @@ -493,8 +493,8 @@ type Policy struct { deleted uint32 Name string `json:"name"` - Key []byte `json:"key"` // DEPRECATED - KeySize int `json:"key_size"` // For algorithms with variable key sizes + Key []byte `json:"key,omitempty"` // DEPRECATED + KeySize int `json:"key_size,omitempty"` // For algorithms with variable key sizes Keys keyEntryMap `json:"keys"` // Derived keys MUST provide a context and the master underlying key is