Skip to content

Commit 48a243d

Browse files
committed
Add back changes which were accidentaly removed in
ac123a0.
1 parent edd94ec commit 48a243d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

st2common/st2common/cmd/install_pack.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,22 @@ def main(argv):
6565
result = download_pack(pack=pack, verify_ssl=verify_ssl, force=force,
6666
proxy_config=proxy_config, force_permissions=True)
6767

68+
# Raw pack name excluding the version
69+
pack_name = result[1]
6870
success = result[2][0]
6971

7072
if success:
71-
LOG.info('Successfully installed pack "%s"' % (pack))
73+
LOG.info('Successfully installed pack "%s"' % (pack_name))
7274
else:
7375
error = result[2][1]
74-
LOG.error('Failed to install pack "%s": %s' % (pack, error))
76+
LOG.error('Failed to install pack "%s": %s' % (pack_name, error))
7577
sys.exit(2)
7678

7779
# 2. Setup pack virtual environment
78-
LOG.info('Setting up virtualenv for pack "%s"' % (pack))
79-
setup_pack_virtualenv(pack_name=pack, update=False, logger=LOG,
80+
LOG.info('Setting up virtualenv for pack "%s"' % (pack_name))
81+
setup_pack_virtualenv(pack_name=pack_name, update=False, logger=LOG,
8082
proxy_config=proxy_config, use_python3=False,
8183
no_download=True)
82-
LOG.info('Successfully set up virtualenv for pack "%s"' % (pack))
84+
LOG.info('Successfully set up virtualenv for pack "%s"' % (pack_name))
8385

8486
return 0

0 commit comments

Comments
 (0)