diff --git a/datamodels/2.x/itop-container-mgmt/data/en_us.data.itop-container-image-type.xml b/datamodels/2.x/itop-container-mgmt/data/en_us.data.itop-container-image-type.xml
new file mode 100644
index 000000000..35d246288
--- /dev/null
+++ b/datamodels/2.x/itop-container-mgmt/data/en_us.data.itop-container-image-type.xml
@@ -0,0 +1,12 @@
+
+
+
+ Docker Hardened Image
+
+
+ Docker Official Image
+
+
+ Verified Publisher
+
+
\ No newline at end of file
diff --git a/datamodels/2.x/itop-container-mgmt/data/en_us.data.itop-container-type.xml b/datamodels/2.x/itop-container-mgmt/data/en_us.data.itop-container-type.xml
index b66bbad0e..96735c598 100644
--- a/datamodels/2.x/itop-container-mgmt/data/en_us.data.itop-container-type.xml
+++ b/datamodels/2.x/itop-container-mgmt/data/en_us.data.itop-container-type.xml
@@ -24,13 +24,4 @@
OpenShift
-
- Docker Hardened Image
-
-
- Docker Official Image
-
-
- Verified Publisher
-
\ No newline at end of file
diff --git a/datamodels/2.x/itop-container-mgmt/module.itop-container-mgmt.php b/datamodels/2.x/itop-container-mgmt/module.itop-container-mgmt.php
index 345789785..e853cf59e 100644
--- a/datamodels/2.x/itop-container-mgmt/module.itop-container-mgmt.php
+++ b/datamodels/2.x/itop-container-mgmt/module.itop-container-mgmt.php
@@ -31,6 +31,8 @@ SetupWebPage::AddModule(
),
'data.struct' => array(
// add your 'structure' definition XML files here,
+ 'data/en_us.data.itop-container-type.xml',
+ 'data/en_us.data.itop-container-image-type.xml',
),
'data.sample' => array(
// add your sample data XML files here,
@@ -49,35 +51,4 @@ SetupWebPage::AddModule(
)
);
-if (!class_exists('ContainerTypeInstaller'))
-{
- // Module installation handler
- //
- class ContainerTypeInstaller extends ModuleInstallerAPI
- {
- /**
- * Handler called after the creation/update of the database schema
- *
- * @param $oConfiguration Config The new configuration of the application
- * @param $sPreviousVersion string Previous version number of the module (empty string in case of first install)
- * @param $sCurrentVersion string Current version number of the module
- *
- * @throws \Exception
- */
- public static function AfterDatabaseCreation(Config $oConfiguration, $sPreviousVersion, $sCurrentVersion)
- {
- if ($sPreviousVersion == '') { // First installation
- $oDataLoader = new XMLDataLoader();
- CMDBObject::SetTrackInfo("Initialization ContainerTypeInstaller");
- $oMyChange = CMDBObject::GetCurrentChange();
- $sFileName = dirname(__FILE__)."/data/en_us.data.itop-container-type.xml";
- SetupLog::Info("Uploading Typology values for Containers from file: $sFileName");
- $oDataLoader->StartSession($oMyChange);
- $oDataLoader->LoadFile($sFileName, false, true);
- $oDataLoader->EndSession();
- }
- }
- }
-}
-
?>