Skip to content

Commit

Permalink
Merge pull request #1115 from hashicorp/b-fix-env-splitting
Browse files Browse the repository at this point in the history
Fix splitting on equals to return maximum of two strings
  • Loading branch information
dadgar committed Apr 22, 2016
2 parents 8eb7773 + c730fe8 commit 8203477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/driver/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8203477

Please sign in to comment.