mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
Fix splitting on equals to return maximum of two strings
This commit is contained in:
2
client/driver/env/env.go
vendored
2
client/driver/env/env.go
vendored
@@ -354,7 +354,7 @@ func (t *TaskEnvironment) AppendHostEnvvars(filter []string) *TaskEnvironment {
|
||||
}
|
||||
|
||||
for _, e := range hostEnv {
|
||||
parts := strings.Split(e, "=")
|
||||
parts := strings.SplitN(e, "=", 2)
|
||||
key, value := parts[0], parts[1]
|
||||
|
||||
// Skip filtered environment variables
|
||||
|
||||
Reference in New Issue
Block a user