diff --git a/st2common/st2common/cmd/install_pack.py b/st2common/st2common/cmd/install_pack.py index 69419586ea..8b5d59956f 100644 --- a/st2common/st2common/cmd/install_pack.py +++ b/st2common/st2common/cmd/install_pack.py @@ -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))