From 69cb5577bc59f8b25b0b267f5ea5e37c6aa20dbd Mon Sep 17 00:00:00 2001 From: davsad Date: Tue, 24 Aug 2021 12:06:51 +0100 Subject: Add ETSI SOL001 v2.5.1 model types to backend init Issue-ID: SDC-3685 Change-Id: I59e56cbe071c21467d0f683c7c977a8ceca6e221 Signed-off-by: davsad --- .../src/main/resources/scripts/sdcBePy/tosca/imports/run.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'catalog-be/src/main/resources/scripts/sdcBePy') diff --git a/catalog-be/src/main/resources/scripts/sdcBePy/tosca/imports/run.py b/catalog-be/src/main/resources/scripts/sdcBePy/tosca/imports/run.py index 1df54ca50e..41437707aa 100644 --- a/catalog-be/src/main/resources/scripts/sdcBePy/tosca/imports/run.py +++ b/catalog-be/src/main/resources/scripts/sdcBePy/tosca/imports/run.py @@ -20,15 +20,12 @@ def main(sdc_be_proxy, update_version): if sdc_be_proxy.disable_locking("true") != 200: raise RuntimeError("Failed to disable locking") try: - model_import_manager = ModelImportManager(Path(base_file_location) / 'models', ModelClient(sdc_be_proxy)) - try: - model_import_manager.create_models() - except Exception as ex: - logger.log("An error has occurred while uploading the models: ", str(ex)) - raise ex process_element_list(normativeElementsList.get_normative_element_candidate_list(base_file_location), sdc_be_proxy) process_type_list(normativeTypesList.get_normative_type_candidate_list(base_file_location), sdc_be_proxy, update_version) process_element_list(normativeElementsList.get_normative_element_with_metadata_list(base_file_location), sdc_be_proxy) + #Add model based normatives + model_import_manager = ModelImportManager(Path(base_file_location) / 'models', ModelClient(sdc_be_proxy)) + model_import_manager.create_models() except Exception as ex: logger.log("An error has occurred while uploading elements and types: ", str(ex)) raise ex -- cgit 1.2.3-korg