aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weed/util/fla9/fla9.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/util/fla9/fla9.go b/weed/util/fla9/fla9.go
index 8cea07311..3770408d2 100644
--- a/weed/util/fla9/fla9.go
+++ b/weed/util/fla9/fla9.go
@@ -1059,11 +1059,13 @@ func (f *FlagSet) ParseEnv(environ []string) error {
}
envKey := strings.ToUpper(flag.Name)
+
if f.envPrefix != "" {
envKey = f.envPrefix + "_" + envKey
}
envKey = strings.Replace(envKey, "-", "_", -1)
-
+ envKey = strings.Replace(envKey, ".", "_", -1)
+
value, isSet := env[envKey]
if !isSet {
continue