Fix nested OS env config override when parent does not exist

Fixes #8618
This commit is contained in:
Bjørn Erik Pedersen
2021-06-08 09:48:22 +02:00
parent f55d2f4376
commit 12530519d8
2 changed files with 6 additions and 1 deletions

View File

@@ -221,7 +221,7 @@ func LoadConfig(d ConfigSourceDescriptor, doWithConfig ...func(cfg config.Provid
} else if nestedKey != "" {
owner[nestedKey] = env.Value
} else {
v.Set(env.Key, env.Value)
v.Set(strings.ReplaceAll(env.Key, delim, "."), env.Value)
}
}