diff --git a/nodepool/nodeutils.py b/nodepool/nodeutils.py index 97b92f671..5741c4d85 100644 --- a/nodepool/nodeutils.py +++ b/nodepool/nodeutils.py @@ -56,7 +56,7 @@ def ssh_connect(ip, username, connect_kwargs={}, timeout=60): # after sshd is up (Fedora for example) log.info('Password auth exception. Try number %i...' % count) except socket.error as e: - if e[0] not in [errno.ECONNREFUSED, errno.EHOSTUNREACH]: + if e[0] not in [errno.ECONNREFUSED, errno.EHOSTUNREACH, None]: log.exception('Exception while testing ssh access:') out = client.ssh("test ssh access", "echo access okay", output=True)