Skip to content

Commit

Permalink
Merge pull request #4932 from hashicorp/b-1172-rkt-env-vars
Browse files Browse the repository at this point in the history
change to testing utilities to fix rkt tests
  • Loading branch information
Chris Baker committed Nov 29, 2018
2 parents 97c9e42 + 72ca56d commit 6f2502e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/drivers/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ func (h *DriverHarness) MkAllocDir(t *TaskConfig, enableLogs bool) func() {

taskEnv := taskBuilder.Build()
if t.Env == nil {
t.Env = taskEnv.All()
t.Env = taskEnv.Map()
} else {
for k, v := range taskEnv.All() {
for k, v := range taskEnv.Map() {
if _, ok := t.Env[k]; !ok {
t.Env[k] = v
}
Expand Down

0 comments on commit 6f2502e

Please sign in to comment.