# HG changeset patch
# User Florent Aide <florent.aide@gmail.com>
# Date 1645448885 -3600
#      Mon Feb 21 14:08:05 2022 +0100
# Node ID f69a9cee3858352570dd20cfa281fee604bd2fbf
# Parent  73aff05670f0014d5881b79fb11be9dadd253c39
tmpl: fix the hardcoded CARNET projet name

diff --git a/templates/server/cmd.gotmpl b/templates/server/cmd.gotmpl
--- a/templates/server/cmd.gotmpl
+++ b/templates/server/cmd.gotmpl
@@ -74,7 +74,7 @@
 func init() {
 	parser.NamespaceDelimiter = "-"
 	parser.EnvNamespaceDelimiter = "_"
-	parser.EnvNamespace = "CARNET"
+	parser.EnvNamespace = "{{ upper .Name }}"
 	if _, err := parser.AddGroup("Configuration", "Configuration file", ConfigFileOption); err != nil {
 		panic(err)
 	}
@@ -110,7 +110,7 @@
 
 	bootstrapParser.NamespaceDelimiter = "-"
 	bootstrapParser.EnvNamespaceDelimiter = "_"
-	bootstrapParser.EnvNamespace = "CARNET"
+	bootstrapParser.EnvNamespace = "{{ upper .Name }}"
 	if _, err := bootstrapParser.AddGroup("Configuration", "Configuration file", ConfigFileOption); err != nil {
 		panic(err)
 	}
diff --git a/testutils/logger.go b/testutils/logger.go
--- a/testutils/logger.go
+++ b/testutils/logger.go
@@ -7,7 +7,7 @@
 	"github.com/rs/zerolog"
 )
 
-//NewTestLogger creates a TestLogger
+// NewTestLogger creates a TestLogger
 func NewTestLogger(tb testing.TB) *TestLogger {
 	return &TestLogger{tb}
 }