From 459d4c0d4de0f6c53916fac3e8f7975c6183a9ef Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Mon, 17 Jun 2024 16:40:29 -0400 Subject: [PATCH] Format policy.json Signed-off-by: Qi Wang --- pkg/controller/container-runtime-config/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/container-runtime-config/helpers.go b/pkg/controller/container-runtime-config/helpers.go index 56ba4607a5..1d11282629 100644 --- a/pkg/controller/container-runtime-config/helpers.go +++ b/pkg/controller/container-runtime-config/helpers.go @@ -568,7 +568,7 @@ func updatePolicyJSON(data []byte, internalBlocked, internalAllowed []string, re } } - policyJSON, err := json.Marshal(policyObj) + policyJSON, err := json.MarshalIndent(policyObj, "", " ") if err != nil { return nil, err }