nested only for json

Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
This commit is contained in:
iosmanthus 2024-06-06 17:10:10 +08:00
parent 2431a8ccd6
commit 37d6c28bef
No known key found for this signature in database
GPG key ID: DEE5BAABFE092169

View file

@ -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)