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

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

commit b8e77dd9ed3d088b155a6f29cd27167dd4c3768d
Author: leonidfrolov <frolovl...@gmail.com>
AuthorDate: Mon Aug 10 15:29:06 2020 +0300

    [DLAB-1974]: fixed some bugs
---
 infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py 
b/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
index 62bc386..6fbb306 100644
--- a/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/redhat/notebook_lib.py
@@ -377,8 +377,10 @@ def install_os_pkg(requisites):
                 dep = [i for i in dep if i]
             versions = []
             res = sudo(
-                'python -c "import os,sys,yum; yb = yum.YumBase(); pl = 
yb.doPackageLists(); print [pkg.vr for pkg in pl.installed if pkg.name == 
\'{0}\'][0]"'.format(
+                'python -c "import os,sys,yum; yb = yum.YumBase(); pl = 
yb.doPackageLists(); print [pkg.vr for pkg in pl.installed if pkg.name == 
\'{0}\']"'.format(
                     name))
+            if res != []:
+                res = res[0]
             if err:
                 status_msg = 'installation_error'
             elif res:


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

Reply via email to