From 8677dd6909fbc984712de2bbc42a96a8352ce9cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Wed, 24 Nov 2021 17:19:03 +0100 Subject: [PATCH] Replace separator for nested keys for consistency --- pkgs/sops-install-secrets/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/sops-install-secrets/main.go b/pkgs/sops-install-secrets/main.go index 69ceaee..f727a0f 100644 --- a/pkgs/sops-install-secrets/main.go +++ b/pkgs/sops-install-secrets/main.go @@ -228,7 +228,7 @@ func recurseSecretKey(keys map[string]interface{}, wantedKey string) (string, er val, ok = currentData[currentKey] if !ok { if keyUntilNow != "" { - keyUntilNow += "." + keyUntilNow += "/" } return "", fmt.Errorf("The key '%s%s' cannot be found", keyUntilNow, currentKey) } @@ -238,7 +238,7 @@ func recurseSecretKey(keys map[string]interface{}, wantedKey string) (string, er if keyUntilNow == "" { keyUntilNow = thisKey } else { - keyUntilNow += "." + thisKey + keyUntilNow += "/" + thisKey } currentKey = currentKey[(slashIndex + 1):] val, ok = currentData[thisKey]