diff options
Diffstat (limited to 'catalog-be/src/main/resources/scripts/sdcBePy/tosca/imports/run.py')
-rw-r--r-- | catalog-be/src/main/resources/scripts/sdcBePy/tosca/imports/run.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 39e802bf87..db6e91481c 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 @@ -10,6 +10,7 @@ from sdcBePy.tosca.models import normativeElementsList from sdcBePy.tosca.models import normativeTypesList from sdcBePy.tosca.models.model_client import ModelClient from sdcBePy.tosca.models.model_import_manager import ModelImportManager +from sdcBePy.tosca.models.node_type_client import NodeTypeClient def main(sdc_be_proxy, update_version): @@ -24,7 +25,8 @@ def main(sdc_be_proxy, update_version): 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 = ModelImportManager(Path(base_file_location) / 'models', ModelClient(sdc_be_proxy), + NodeTypeClient(sdc_be_proxy)) model_import_manager.deploy_models() except Exception as ex: logger.log("An error has occurred while uploading elements and types: ", str(ex)) |