Commit e004ad7d authored by Leigh B. Stoller's avatar Leigh B. Stoller

Possible fix (which needs real fixing) to the swapmod and enironment

problem, which is that swapmod messes up the env that the template
code has carefully setup.
parent 6a60186f
......@@ -474,6 +474,18 @@ if ($doswapmod) {
system(@arguments);
fatal($? >> 8, "Swap modify failed!")
if ($?);
#
# XXX FIX! Do this again, cause the swapmod messed up the env variables.
#
$instance->Refresh();
# We munge the environment variables.
$instance->InitializeEnvVariables(\%parameters) == 0
or fatal(-1, "Could not add new environment variables to instance");
$instance->WriteEnvVariables() == 0
or fatal(-1, "Could not write environment strings for program agents");
}
else {
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment