Use return value of Build_Image/Build_Proxy to decide if abort instead of sysexit

This commit is contained in:
Robert Schmidt
2024-01-24 15:47:29 +01:00
parent 163af6b954
commit 1a03179720
2 changed files with 10 additions and 5 deletions
+6 -2
View File
@@ -830,9 +830,13 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
if not CLUSTER.BuildClusterImage(HTML):
RAN.prematureExit = True
elif action == 'Build_Image':
CONTAINERS.BuildImage(HTML)
success = CONTAINERS.BuildImage(HTML)
if not success:
RAN.prematureExit = True
elif action == 'Build_Proxy':
CONTAINERS.BuildProxy(HTML)
success = CONTAINERS.BuildProxy(HTML)
if not success:
RAN.prematureExit = True
elif action == 'Push_Local_Registry':
success = CONTAINERS.Push_Image_to_Local_Registry(HTML)
if not success: