From 55655e3fcaa0383e2b75d4a17bee38a898caa102 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Fri, 9 Feb 2018 08:53:26 +0000 Subject: [PATCH] Added an extra safety check to detect inconsistencies between the added extensions and the choices made during the initial installation. SVN:2.4[5319] --- datamodels/2.x/itop-hub-connector/ajax.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datamodels/2.x/itop-hub-connector/ajax.php b/datamodels/2.x/itop-hub-connector/ajax.php index 5112a6a0cf..9908f0390a 100644 --- a/datamodels/2.x/itop-hub-connector/ajax.php +++ b/datamodels/2.x/itop-hub-connector/ajax.php @@ -264,6 +264,9 @@ try $oRuntimeEnv->InitDataModel($oConfig, true /* model only */); + // Safety check: check the inter dependencies, will throw an exception in case of inconsistency + $oRuntimeEnv->AnalyzeInstallation($oConfig, $oRuntimeEnv->GetBuildDir(), true); + $oRuntimeEnv->CheckMetaModel(); // Will throw an exception if a problem is detected // Everything seems Ok so far, commit in env-production!