Skip to content

Commit

Permalink
Merge pull request #1581 from nak3/fix-rkt2
Browse files Browse the repository at this point in the history
Set host environment variables to taskEnv of rkt driver
  • Loading branch information
dadgar committed Aug 15, 2016
2 parents 47f10d1 + 869b23e commit e2b7b86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/driver/rkt.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ func (d *RktDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, e
}
}

// Set the host environment variables.
filter := strings.Split(d.config.ReadDefault("env.blacklist", config.DefaultEnvBlacklist), ",")
d.taskEnv.AppendHostEnvvars(filter)

bin, err := discover.NomadExecutable()
if err != nil {
return nil, fmt.Errorf("unable to find the nomad binary: %v", err)
Expand Down

0 comments on commit e2b7b86

Please sign in to comment.