Skip to content

Commit

Permalink
Set host environment variables to taskEnv of rkt driver
Browse files Browse the repository at this point in the history
  • Loading branch information
nak3 committed Aug 13, 2016
1 parent fa73b6a commit 869b23e
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 @@ -276,6 +276,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 869b23e

Please sign in to comment.