From 37d6c28beffabbf95f0fd9d68343799cd25e9d3a Mon Sep 17 00:00:00 2001 From: iosmanthus Date: Thu, 6 Jun 2024 17:10:10 +0800 Subject: [PATCH] nested only for json Signed-off-by: iosmanthus --- pkgs/sops-install-secrets/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/sops-install-secrets/main.go b/pkgs/sops-install-secrets/main.go index 268f2a7..bd6f4a0 100644 --- a/pkgs/sops-install-secrets/main.go +++ b/pkgs/sops-install-secrets/main.go @@ -277,6 +277,7 @@ func recurseSecretKey(format FormatType, keys map[string]interface{}, wantedKey return "", fmt.Errorf("cannot marshal the value of key '%s': %w", keyUntilNow, err) } strVal = bytes.Trim(strVal, "\"") + fmt.Println(string(strVal)) return string(strVal), nil default: return "", fmt.Errorf("nested secrets are not supported for %s", format)