This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DLAB-1748
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit c7913e125df640fe6fca2a610f1d31d3d51f8f1c
Author: leonidfrolov <frolovl...@gmail.com>
AuthorDate: Thu Jul 9 10:58:49 2020 +0300

    [DLAB-1748]: made list of available pip versions equal none if there are no 
available versions
---
 infrastructure-provisioning/src/general/lib/os/fab.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py 
b/infrastructure-provisioning/src/general/lib/os/fab.py
index 9414088..2af2cc4 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -97,6 +97,8 @@ def install_pip_pkg(requisites, pip_version, lib_group):
             else:
                 if "Could not find a version that satisfies the requirement" 
in err:
                     versions = [err[err.find("(from versions: ") + 16: 
err.find(")\r\n")]].split(' ')
+                    if versions == '':
+                        versions = "none"
                     status.append({"group": "{}".format(lib_group), "name": 
pip_pkg.split("=")[0], "status": "failed",
                                    "error_message": err, "available_versions": 
versions})
                 else:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org
For additional commands, e-mail: commits-h...@dlab.apache.org

Reply via email to