mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-18 18:38:08 -05:00
Initialize seal config map if nil (#22912)
* Initialize seal config map if nil * Move the function outside if
This commit is contained in:
parent
f8ad2da680
commit
1c7716059d
1 changed files with 3 additions and 0 deletions
|
|
@ -216,6 +216,9 @@ func configureWrapper(configKMS *KMS, infoKeys *[]string, info *map[string]strin
|
|||
var err error
|
||||
|
||||
envConfig := GetEnvConfigFunc(configKMS)
|
||||
if configKMS.Config == nil {
|
||||
configKMS.Config = make(map[string]string)
|
||||
}
|
||||
// transit is a special case, because some config values take precedence over env vars
|
||||
if configKMS.Type == wrapping.WrapperTypeTransit.String() {
|
||||
mergeTransitConfig(configKMS.Config, envConfig)
|
||||
|
|
|
|||
Loading…
Reference in a new issue