Remove unneeded env building
This commit is contained in:
parent
39f587a2af
commit
8e1ae14feb
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue