diff --git a/client/driver/java.go b/client/driver/java.go index 9f3a92701..919c738db 100644 --- a/client/driver/java.go +++ b/client/driver/java.go @@ -164,9 +164,6 @@ func (d *JavaDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool, } func (d *JavaDriver) Prestart(ctx *ExecContext, task *structs.Task) error { - // Set the host environment variables. - filter := strings.Split(d.config.ReadDefault("env.blacklist", config.DefaultEnvBlacklist), ",") - d.taskEnv.AppendHostEnvvars(filter) return nil } diff --git a/client/driver/raw_exec.go b/client/driver/raw_exec.go index d881dfddc..c83fde4b6 100644 --- a/client/driver/raw_exec.go +++ b/client/driver/raw_exec.go @@ -7,7 +7,6 @@ import ( "os" "os/exec" "path/filepath" - "strings" "time" "github.com/hashicorp/go-plugin" @@ -108,9 +107,6 @@ func (d *RawExecDriver) Fingerprint(cfg *config.Config, node *structs.Node) (boo } func (d *RawExecDriver) Prestart(ctx *ExecContext, task *structs.Task) error { - // Set the host environment variables. - filter := strings.Split(d.config.ReadDefault("env.blacklist", config.DefaultEnvBlacklist), ",") - d.taskEnv.AppendHostEnvvars(filter) return nil }