mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-27 15:02:54 +08:00
nested only for json
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
This commit is contained in:
parent
2431a8ccd6
commit
37d6c28bef
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue