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

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


The following commit(s) were added to refs/heads/DLAB-1467 by this push:
     new d235af9  [DLAB-1467]: debug
     new 9882030  Merge remote-tracking branch 'origin/DLAB-1467' into DLAB-1467
d235af9 is described below

commit d235af9c67f0590cea293b0f79061ef0f13ddb92
Author: Oleh Martushevskyi <[email protected]>
AuthorDate: Fri Feb 7 15:37:36 2020 +0200

    [DLAB-1467]: debug
---
 .../src/general/lib/os/debian/common_lib.py                    | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git 
a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py 
b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
index c06012b..916c48c 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
@@ -45,25 +45,17 @@ def ensure_pkg(user, requisites='linux-headers-generic 
python-pip python-dev '
                         print("Updating repositories "
                                 "and installing requested tools: 
{}".format(requisites))
                         print("Attempt number " + str(count) + " to install 
requested tools. Max 60 tries.")
-                        print("-----Starting-----")
-                        print("Check --->>> {}".format(str(check)))
                         sudo('apt-get update')
                         sudo('apt-get -y install ' + requisites)
                         sudo('unattended-upgrades -v')
                         sudo('export LC_ALL=C')
                         sudo('touch 
/home/{}/.ensure_dir/pkg_upgraded'.format(user))
                         sudo('systemctl enable haveged')
-                        print("-----After enabling------")
                         sudo('systemctl start haveged')
-                        print("-----after start-------")
                         if os.environ['conf_cloud_provider'] == 'aws':
                             sudo('apt-get -y install --install-recommends 
linux-aws-hwe')
                         check = True
-                        print("-----Finishing-----")
-                        print("Check --->>> {}".format(str(check)))
-                    except Exception as err:
-                        print("------Error-------")
-                        print(str(err))
+                    except:
                         count += 1
                         time.sleep(50)
     except:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to