Skip to content

Commit ace321d

Browse files
committed
Fix "st2-pack-install" script so the setup virtualenv step also works
correctly if user passes in a version (e.g. st2-pack-instal bitcon=0.1.0).
1 parent 9d26766 commit ace321d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

st2common/st2common/cmd/install_pack.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ def main(argv):
106106
result = download_pack(pack=pack, verify_ssl=verify_ssl, force=force,
107107
proxy_config=proxy_config, force_permissions=True)
108108

109+
# Raw pack name excluding the version
110+
pack_name = result[1]
109111
success = result[2][0]
110112

111113
if success:
@@ -116,8 +118,8 @@ def main(argv):
116118
sys.exit(2)
117119

118120
# 2. Setup pack virtual environment
119-
LOG.info('Setting up virtualenv for pack "%s"' % (pack))
120-
setup_pack_virtualenv(pack_name=pack, update=False, logger=LOG,
121+
LOG.info('Setting up virtualenv for pack "%s"' % (pack_name))
122+
setup_pack_virtualenv(pack_name=pack_name, update=False, logger=LOG,
121123
proxy_config=proxy_config, use_python3=False,
122124
no_download=True)
123125
LOG.info('Successfuly set up virtualenv for pack "%s"' % (pack))

0 commit comments

Comments
 (0)