Skip to content

Commit

Permalink
fixup! Added get-dependencies option to install_pack.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jk464 committed Aug 22, 2023
1 parent 9ceeb7f commit 271f8d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions st2common/st2common/cmd/install_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ def get_pack_dependencies(pack, verify_ssl, force, dependencies, proxy_config):

def download_packs(packs, verify_ssl, force, dependencies, proxy_config):
packs_base_paths = get_packs_base_paths()
LOG.info(packs_base_paths)

for pack in packs:
if pack in listdir("/opt/stackstorm/packs"):
LOG.info('Pack already installed "%s"' % (pack))
continue
for pack_dir in packs_base_paths:
if pack in listdir(pack_dir):
LOG.info('Pack already installed "%s" in "%s"' % (pack, pack_dir))
continue

# 1. Download the pack
LOG.info('Installing pack "%s"' % (pack))
Expand Down

0 comments on commit 271f8d3

Please sign in to comment.