Skip to content

Commit

Permalink
oncall- installation orders (#31253)
Browse files Browse the repository at this point in the history
* test

* test

* revert debugs

* pre-commit

---------

Co-authored-by: Jas Beilin <jgranot@paloaltonetworks.com>
  • Loading branch information
jbabazadeh and JasBeilin committed Dec 4, 2023
1 parent 0291be6 commit 83cffa0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tests/Marketplace/search_and_install_packs.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,8 @@ def search_pack_and_its_dependencies(client: demisto_client,
]
packs_to_install.extend([pack['id'] for pack in pack_and_its_dependencies_as_list])
list_packs_and_its_dependency_install_request_body.append(pack_and_its_dependencies_as_list)

logging.info(
f"list_packs_and_its_dependency_install_request_body: {list_packs_and_its_dependency_install_request_body} ")
else: # multithreading
for pack in current_packs_to_install:
if pack['id'] not in packs_to_install:
Expand Down Expand Up @@ -783,6 +784,8 @@ def search_and_install_packs_and_their_dependencies(pack_ids: list,

success = True
if not multithreading:
pack_ids = sorted(pack_ids, key=lambda x: (x == "DeveloperTools", x == "Base"))
logging.info(f"pack_ids = {pack_ids}")
for pack_id in pack_ids:
success &= search_pack_and_its_dependencies(pack_id=pack_id, **kwargs)

Expand Down

0 comments on commit 83cffa0

Please sign in to comment.