mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
fix env config reads for nested config values
This commit is contained in:
parent
466169e8d7
commit
027f71de45
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ func readConfig(v *viper.Viper, configPath string) error {
|
|||
v.SetEnvPrefix(internal.ApplicationName)
|
||||
// allow for nested options to be specified via environment variables
|
||||
// e.g. pod.context = APPNAME_POD_CONTEXT
|
||||
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
|
||||
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", "_"))
|
||||
|
||||
// use explicitly the given user config
|
||||
if configPath != "" {
|
||||
|
|
Loading…
Reference in a new issue