mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-25 08:13:24 +00:00
Updated the env-var usage, as requested from the review of alexellis on the previous PR by utsavanand2
https://github.com/openfaas/faasd/pull/154#discussion_r608777877 Signed-off-by: Shikachuu <zcmate@gmail.com>
This commit is contained in:
@ -247,7 +247,7 @@ func prepareEnv(envProcess string, reqEnvVars map[string]string) []string {
|
||||
}
|
||||
|
||||
func getMounts() []specs.Mount {
|
||||
wd, _ := os.Getwd()
|
||||
wd, _ := os.LookupEnv("hosts_dir")
|
||||
mounts := []specs.Mount{}
|
||||
mounts = append(mounts, specs.Mount{
|
||||
Destination: "/etc/resolv.conf",
|
||||
|
Reference in New Issue
Block a user