From abe67d9e4e7cdc1b2d0f041cd1502fe39ceddbb6 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Fri, 9 Feb 2018 08:43:42 +0000 Subject: [PATCH] Added an extra safety check to detect inconsistencies between the added extensions and the choices made during the initial installation. SVN:trunk[5318] --- 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 5112a6a0c..9908f0390 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!