Merge "Set socket timeout for SSH keyscan" into feature/zuulv3
This commit is contained in:
commit
399503f3ac
|
@ -68,6 +68,7 @@ def keyscan(ip, timeout=60):
|
|||
t = None
|
||||
try:
|
||||
sock = socket.socket(family, socket.SOCK_STREAM)
|
||||
sock.settimeout(timeout)
|
||||
sock.connect(sockaddr)
|
||||
t = paramiko.transport.Transport(sock)
|
||||
t.start_client()
|
||||
|
|
Loading…
Reference in New Issue