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"))
|
||||
{
|
||||
process.StartInfo.EnvironmentVariables.Add(
|
||||
configEnvironmentVariable["name"],
|
||||
configEnvironmentVariable["value"]);
|
||||
var name = configEnvironmentVariable["name"];
|
||||
process.StartInfo.EnvironmentVariables[name] = configEnvironmentVariable["value"];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user