Explorar el Código

Add sleep_seconds in OS morphing SSH connection retry

Alessandro Pilotti hace 8 años
padre
commit
09e4d00bc1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      coriolis/osmorphing/osmount/base.py

+ 1 - 1
coriolis/osmorphing/osmount/base.py

@@ -68,7 +68,7 @@ class BaseSSHOSMountTools(BaseOSMountTools):
         ssh = paramiko.SSHClient()
         ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
 
-        @utils.retry_on_error()
+        @utils.retry_on_error(max_attempts=5, sleep_seconds=3)
         def _ssh_connect():
             ssh.connect(hostname=ip, port=port, username=username, pkey=pkey,
                         password=password)