Remove unneeded env building

This commit is contained in:
Michael Schurter 2016-12-20 16:14:42 -08:00
parent 39f587a2af
commit 8e1ae14feb
2 changed files with 0 additions and 7 deletions

View file

@ -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 { 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 return nil
} }

View file

@ -7,7 +7,6 @@ import (
"os" "os"
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"strings"
"time" "time"
"github.com/hashicorp/go-plugin" "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 { 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 return nil
} }