From 1de488859957e4c8782079f75df0963c6f6ce547 Mon Sep 17 00:00:00 2001 From: plm Date: Tue, 10 Dec 2024 14:01:47 +0100 Subject: [PATCH] Remove extra underscore character; it breaks the env var loading --- config/conf_loader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/conf_loader.go b/config/conf_loader.go index 8397953..9d1e1ee 100644 --- a/config/conf_loader.go +++ b/config/conf_loader.go @@ -26,7 +26,7 @@ import ( func GetConfLoader() *onion.Onion { logger := zerolog.New(os.Stdout).With().Timestamp().Logger() AppName := GetAppName() - EnvPrefix := strings.ToUpper(AppName[0:2]+AppName[3:]) + "_" + EnvPrefix := strings.ToUpper(AppName[0:2] + AppName[3:]) defaultConfigFile := "/etc/oc/" + AppName[3:] + ".json" localConfigFile := "./" + AppName[3:] + ".json" var configFile string