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

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


The following commit(s) were added to refs/heads/DLAB-515 by this push:
     new 6e6e0ad  [DLAB-515]: [AWS] Notebook creation fixed
6e6e0ad is described below

commit 6e6e0ad7e5daf0e404c7d2f3ca882f0ccabb0797
Author: bodnarmykola <[email protected]>
AuthorDate: Tue Apr 14 01:12:21 2020 +0300

    [DLAB-515]: [AWS] Notebook creation fixed
---
 infrastructure-provisioning/src/general/lib/os/debian/common_lib.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 c36aadf..870a500 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
@@ -93,7 +93,8 @@ def ensure_pkg(user, requisites='linux-headers-generic 
python-pip python-dev '
 
 def renew_gpg_key():
     try:
-        sudo('mv /etc/apt/trusted.gpg /etc/apt/trusted.bkp')
+        if exists('/etc/apt/trusted.gpg'):
+            sudo('mv /etc/apt/trusted.gpg /etc/apt/trusted.bkp')
         sudo('apt-key update')
     except:
         sys.exit(1)


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

Reply via email to