Merge pull request #1581 from nak3/fix-rkt2

Set host environment variables to taskEnv of rkt driver
This commit is contained in:
Alex Dadgar 2016-08-15 10:31:10 -07:00 committed by GitHub
commit 64b86bed0d
1 changed files with 4 additions and 0 deletions

View File

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