From 271f8d323158b84a668d66603e7f1eec69b8522e Mon Sep 17 00:00:00 2001 From: jk464 Date: Tue, 22 Aug 2023 16:00:08 +0100 Subject: [PATCH] fixup! Added get-dependencies option to install_pack.py --- st2common/st2common/cmd/install_pack.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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))