Merge pull request #32 from mheck136/replace-environment-variables-in-config

Add support for environment variables in configuration
This commit is contained in:
Mustafa Akın
2020-04-10 16:03:46 +03:00
committed by GitHub
+2
View File
@@ -26,6 +26,8 @@ func main() {
log.Fatal().Err(err).Msg("cannot read config file")
}
b = []byte(os.ExpandEnv(string(b)))
var cfg exporter.Config
err = yaml.Unmarshal(b, &cfg)
if err != nil {