This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2091 by this push:
new ca9ba59 [DATALAB-2391]: added version variable definition in case of
invalid version
ca9ba59 is described below
commit ca9ba59780dc124af914c77fd9fa015d557c929e
Author: leonidfrolov <[email protected]>
AuthorDate: Wed May 5 16:18:57 2021 +0300
[DATALAB-2391]: added version variable definition in case of invalid version
---
infrastructure-provisioning/src/general/lib/os/fab.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py
b/infrastructure-provisioning/src/general/lib/os/fab.py
index 3716aa1..241f764 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -108,6 +108,7 @@ def install_pip_pkg(requisites, pip_version, lib_group):
versions = err[err.find("(from versions: ") + 16: err.find(")
")]
if versions != '' and versions != 'none':
versions = versions.split(', ')
+ version = vers
status_msg = 'invalid_version'
else:
versions = []
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]