mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-01-09 07:07:22 +08:00
trim strVal
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
This commit is contained in:
parent
8f44eed8b8
commit
95f888cdc5
1 changed files with 1 additions and 0 deletions
|
|
@ -264,6 +264,7 @@ func recurseSecretKey(format FormatType, keys map[string]interface{}, wantedKey
|
|||
if err != nil {
|
||||
return "", fmt.Errorf("Cannot marshal the value of key '%s': %w", keyUntilNow, err)
|
||||
}
|
||||
strVal = bytes.TrimSpace(strVal)
|
||||
|
||||
return string(strVal), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue