summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py
diff options
context:
space:
mode:
authordavsad <david.sadlier@est.tech>2021-08-12 08:34:20 +0100
committerDavid Sadlier <david.sadlier@est.tech>2021-08-24 21:12:23 +0000
commitf93c7cb4cbd64d6f662cbfec186f62ed9cf49825 (patch)
treee2842763361874b3cd08fc043961686d743b67f6 /catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py
parent5f0adaaf5879db0ff9a0d9e772dc6fd6c35901af (diff)
Update backend-init to use new endpoints allowing specific model
Issue-ID: SDC-3676 Signed-off-by: davsad <david.sadlier@est.tech> Change-Id: I5e77185dcaa0f3172958ac93198ae2df2f17366b
Diffstat (limited to 'catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py')
-rw-r--r--catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py b/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py
index ad8338cee4..805f0b0167 100644
--- a/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py
+++ b/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/main.py
@@ -11,14 +11,16 @@ from sdcBePy import properties
colors = BColors()
-def process_element_list(normative_elements_list, sdc_be_proxy):
+def process_element_list(normative_elements_list, sdc_be_proxy, model=None):
attempt = 0
for normative_element in normative_elements_list:
+ if normative_element is None:
+ continue
while True:
attempt += 1
try:
process_and_create_normative_element(normative_element,
- sdc_be_proxy=sdc_be_proxy)
+ sdc_be_proxy=sdc_be_proxy, model=model)
break
except ResourceCreationError as e:
_check_and_retry(attempt, e.error_code, e.message)