From d726d660d524d5099afad6ff55f23dafc05e9091 Mon Sep 17 00:00:00 2001 From: carabasdaniel Date: Mon, 14 Oct 2024 18:12:13 +0300 Subject: [PATCH] Fix viper env key replacer in policy CLI config --- pkg/cc/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cc/config/config.go b/pkg/cc/config/config.go index 67effa8..77e9e73 100644 --- a/pkg/cc/config/config.go +++ b/pkg/cc/config/config.go @@ -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()