CI: Push_Image_to_Local_Registry(): harmonize code

- pass parameter directly instead of indirectly via class
- harmonize to svr_id to harmonize parameter with parameters in the next
  commit (and towards a future harmonization of directly taking node
  names instead of "IDs")
This commit is contained in:
Robert Schmidt
2024-11-22 08:23:48 +01:00
parent 3e51fcdf33
commit a48728ba35
3 changed files with 5 additions and 8 deletions
+2 -4
View File
@@ -370,10 +370,8 @@ def ExecuteActionWithParam(action):
success = SCA.CppCheckAnalysis(HTML)
elif action == 'Push_Local_Registry':
string_field = test.findtext('registry_svr_id')
if (string_field is not None):
CONTAINERS.registrySvrId = string_field
success = CONTAINERS.Push_Image_to_Local_Registry(HTML)
svr_id = test.findtext('svr_id')
success = CONTAINERS.Push_Image_to_Local_Registry(HTML, svr_id)
elif action == 'Pull_Local_Registry':
string_field = test.findtext('test_svr_id')