FIX Apply the new IDMAP env var
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-26 22:37:24 +01:00
parent 7f0df443fb
commit f463564085

View File

@@ -373,7 +373,7 @@ func main() {
log.Info("Starting ObjectiveFS Volume Driver, version " + version)
defEnv := make(map[string]string)
for _, i := range []string{"ACCESS_KEY", "SECRET_KEY", "OBJECTIVEFS_LICENSE", "OBJECTSTORE", "ENDPOINT", "CACHESIZE", "DISKCACHE_SIZE", "DISKCACHE_PATH", "OBJECTIVEFS_PASSPHRASE"} {
for _, i := range []string{"ACCESS_KEY", "SECRET_KEY", "OBJECTIVEFS_LICENSE", "OBJECTSTORE", "ENDPOINT", "CACHESIZE", "DISKCACHE_SIZE", "DISKCACHE_PATH", "OBJECTIVEFS_PASSPHRASE", "IDMAP"} {
if a := os.Getenv(i); a != "" {
defEnv[i] = a
}