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/12 10:38:17 UTC

[incubator-datalab] branch DATALAB-2091 updated: [DATALAB-2091]: increased amount of attempts

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 b6bdd2f  [DATALAB-2091]: increased amount of attempts
b6bdd2f is described below

commit b6bdd2fe3c557254008e56b709cf802f4fca3918
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri Feb 12 12:38:00 2021 +0200

    [DATALAB-2091]: increased amount of attempts
---
 infrastructure-provisioning/src/base/scripts/create_ssh_user.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/base/scripts/create_ssh_user.py b/infrastructure-provisioning/src/base/scripts/create_ssh_user.py
index 96948d1..24038bc 100644
--- a/infrastructure-provisioning/src/base/scripts/create_ssh_user.py
+++ b/infrastructure-provisioning/src/base/scripts/create_ssh_user.py
@@ -55,7 +55,7 @@ def init_datalab_connection(hostname, username, keyfile):
     try:
         global conn
         attempt = 0
-        while attempt < 1:
+        while attempt < 10:
             print('connection attempt {}'.format(attempt))
             conn = Connection(host = hostname, user = username, connect_kwargs={'key_filename': keyfile})
             try:


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