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

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)