mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Force timeout to float
This commit is contained in:
parent
4b70226325
commit
eceec16aef
@ -52,7 +52,7 @@ class RosterMatcher(object):
|
||||
for port in ports:
|
||||
try:
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.settimeout(__opts__['ssh_scan_timeout'])
|
||||
sock.settimeout(float(__opts__['ssh_scan_timeout']))
|
||||
sock.connect((addr, port))
|
||||
sock.shutdown(socket.SHUT_RDWR)
|
||||
sock.close()
|
||||
|
Loading…
Reference in New Issue
Block a user