From 0efc0e0231220d3e749107ffcfcebc0a34c7238b Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Sun, 14 Aug 2016 00:42:53 +0900 Subject: [PATCH] Set host environment variables to taskEnv of rkt driver --- client/driver/rkt.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/driver/rkt.go b/client/driver/rkt.go index 3dbcea8a0..86d755182 100644 --- a/client/driver/rkt.go +++ b/client/driver/rkt.go @@ -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)