You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/02/24 07:56:00 UTC

[incubator-datalab] branch DATALAB-2091 updated: [DATALAB-2091]: removed duplication

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 f784a73  [DATALAB-2091]: removed duplication
f784a73 is described below

commit f784a737403d185a9f88a7ad76745b7026b70039
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Wed Feb 24 09:55:38 2021 +0200

    [DATALAB-2091]: removed duplication
---
 infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
index 02515ba..30e6637 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
@@ -34,7 +34,7 @@ import subprocess
 
 def ensure_docker_daemon(datalab_path, os_user, region):
     try:
-        if not exists(datalab.fab.datalab.fab.conn,datalab_path + 'tmp/docker_daemon_ensured'):
+        if not exists(datalab.fab.conn, datalab_path + 'tmp/docker_daemon_ensured'):
             docker_version = os.environ['ssn_docker_version']
             datalab.fab.conn.sudo('curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -')
             datalab.fab.conn.sudo('add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) \
@@ -53,7 +53,7 @@ def ensure_docker_daemon(datalab_path, os_user, region):
 
 def ensure_nginx(datalab_path):
     try:
-        if not exists(datalab.fab.datalab.fab.conn,datalab_path + 'tmp/nginx_ensured'):
+        if not exists(datalab.fab.conn,datalab_path + 'tmp/nginx_ensured'):
             manage_pkg('-y install', 'remote', 'nginx')
             datalab.fab.conn.sudo('service nginx restart')
             datalab.fab.conn.sudo('update-rc.d nginx defaults')


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org