Skip to content

Commit

Permalink
Fixed empty installation (demisto#27541)
Browse files Browse the repository at this point in the history
* fix empty installation

* Update Tests/Marketplace/search_and_install_packs.py

Co-authored-by: Yaakov Praisler <59408745+yaakovpraisler@users.noreply.github.com>

---------

Co-authored-by: Yaakov Praisler <59408745+yaakovpraisler@users.noreply.github.com>
  • Loading branch information
2 people authored and xsoar-bot committed Jul 26, 2023
1 parent f0df616 commit 763d18e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/Marketplace/search_and_install_packs.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ def install_packs(client: demisto_client,
sleep_interval (int): The sleep interval, in seconds, between install attempts.
"""
global SUCCESS_FLAG
if not packs_to_install:
logging.info("There are no packs to install on servers. Consolidating installation as success")
return SUCCESS_FLAG
try:
for attempt in range(attempts_count - 1, -1, -1):
try:
Expand Down

0 comments on commit 763d18e

Please sign in to comment.