N°9144 - tests and fixes

This commit is contained in:
odain
2026-04-08 12:00:49 +02:00
parent b3a640564b
commit 83ff3b1629
8 changed files with 606 additions and 95 deletions

View File

@@ -162,18 +162,23 @@ abstract class StepSequencer
protected function GetConfig()
{
if (! is_null($this->oConfig)) {
return $this->oConfig;
}
$sTargetEnvironment = $this->oRunTimeEnvironment->GetBuildEnv();
$sConfigFile = APPCONF.$sTargetEnvironment.'/'.ITOP_CONFIG_FILE;
try {
$oConfig = new Config($sConfigFile);
$this->oConfig = new Config($sConfigFile);
} catch (Exception $e) {
return null;
SetupLog::Exception("Setup error", $e);
throw $e;
}
$aParamValues = $this->oParams->GetParamForConfigArray();
$oConfig->UpdateFromParams($aParamValues);
$this->oConfig->UpdateFromParams($aParamValues);
return $oConfig;
return $this->oConfig;
}
/**