Pass environment through to go language programs (#1965)
This allows those programs to use authentication credentials that are in the environment to perform extra work.
This commit is contained in:
parent
9c7fff2d7d
commit
0ea261baf4
|
@ -179,7 +179,7 @@ func (host *goLanguageHost) constructEnv(req *pulumirpc.RunRequest) ([]string, e
|
|||
return nil, err
|
||||
}
|
||||
|
||||
var env []string
|
||||
env := os.Environ()
|
||||
maybeAppendEnv := func(k, v string) {
|
||||
if v != "" {
|
||||
env = append(env, fmt.Sprintf("%s=%s", k, v))
|
||||
|
|
Loading…
Reference in a new issue