Skip to content

Commit 23daaf3

Browse files
committed
fix empty templating
1 parent 361e7a0 commit 23daaf3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utils/config/config.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ func templateConfig(config *koanf.Koanf) {
155155
str, isStr := value.(string)
156156

157157
if isStr {
158-
data[key] = os.ExpandEnv(str)
158+
templated := os.ExpandEnv(str)
159+
160+
if templated != "" {
161+
data[key] = templated
162+
}
159163
}
160164
}
161165

0 commit comments

Comments
 (0)