overwrite existing external process environment variables to prevent throwing when a key is present that is already set (#520)
This commit is contained in:
@@ -442,9 +442,8 @@ namespace k8s
|
|||||||
{
|
{
|
||||||
if (configEnvironmentVariable.ContainsKey("name") && configEnvironmentVariable.ContainsKey("value"))
|
if (configEnvironmentVariable.ContainsKey("name") && configEnvironmentVariable.ContainsKey("value"))
|
||||||
{
|
{
|
||||||
process.StartInfo.EnvironmentVariables.Add(
|
var name = configEnvironmentVariable["name"];
|
||||||
configEnvironmentVariable["name"],
|
process.StartInfo.EnvironmentVariables[name] = configEnvironmentVariable["value"];
|
||||||
configEnvironmentVariable["value"]);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user