mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 02:52:07 +00:00
Fix when networkmanager breaks one of our connections
This usually happens with ipv6 link local used in initramfs stage, after networkmanager may mutilate the ipv6 connectivity.
This commit is contained in:
parent
75f0aaeee9
commit
41437c511b
@ -316,7 +316,10 @@ if __name__ == '__main__':
|
||||
srvs, _ = apiclient.scan_confluents()
|
||||
doneidxs = set([])
|
||||
for srv in srvs:
|
||||
s = socket.create_connection((srv, 443))
|
||||
try:
|
||||
s = socket.create_connection((srv, 443))
|
||||
except socket.error:
|
||||
continue
|
||||
myname = s.getsockname()
|
||||
s.close()
|
||||
if len(myname) == 4:
|
||||
|
Loading…
Reference in New Issue
Block a user