Skip to content

Commit 271f8d3

Browse files
committed
fixup! Added get-dependencies option to install_pack.py
1 parent 9ceeb7f commit 271f8d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

st2common/st2common/cmd/install_pack.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ def get_pack_dependencies(pack, verify_ssl, force, dependencies, proxy_config):
8282

8383
def download_packs(packs, verify_ssl, force, dependencies, proxy_config):
8484
packs_base_paths = get_packs_base_paths()
85-
LOG.info(packs_base_paths)
8685

8786
for pack in packs:
88-
if pack in listdir("/opt/stackstorm/packs"):
89-
LOG.info('Pack already installed "%s"' % (pack))
90-
continue
87+
for pack_dir in packs_base_paths:
88+
if pack in listdir(pack_dir):
89+
LOG.info('Pack already installed "%s" in "%s"' % (pack, pack_dir))
90+
continue
9191

9292
# 1. Download the pack
9393
LOG.info('Installing pack "%s"' % (pack))

0 commit comments

Comments
 (0)