Merge pull request #1115 from hashicorp/b-fix-env-splitting

Fix splitting on equals to return maximum of two strings
This commit is contained in:
Alex Dadgar 2016-04-22 10:20:39 -07:00
commit 75ffe25ac5
1 changed files with 1 additions and 1 deletions

View File

@ -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