mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-29 21:48:45 +02:00
N°9144 - setup wizard sequencers test coverage + fixes
N°9144 - ci: fix hub setup test N°9144 - code style N°9144 - tests and fixes N°9144 - ci: fix tests and code style
This commit is contained in:
@@ -161,18 +161,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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user