Skip to content

Commit

Permalink
Fix viper env key replacer in policy CLI config
Browse files Browse the repository at this point in the history
  • Loading branch information
carabasdaniel committed Oct 14, 2024
1 parent 822f478 commit d726d66
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 d726d66

Please sign in to comment.