Skip to content

Commit

Permalink
Fix viper env key replacer in policy CLI config (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
carabasdaniel authored Oct 15, 2024
1 parent 822f478 commit 056efdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cc/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func NewConfig(configPath Path, log *zerolog.Logger, overrides Overrider) (*Conf
}

v.SetEnvPrefix("POLICY")
v.SetEnvKeyReplacer(strings.NewReplacer("-", "_"))
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))

// Set defaults.
home, err := os.UserHomeDir()
Expand Down

0 comments on commit 056efdc

Please sign in to comment.