2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-11 18:42:29 +00:00

Tolerate errors during register

If a condition breaks unicast query, keep going.
This commit is contained in:
Jarrod Johnson
2025-03-27 09:50:19 -04:00
parent 4677f2c806
commit 72c030995f

View File

@@ -529,13 +529,17 @@ def register_remote_addrs(addresses, configmanager):
nd = {
'addresses': [(addr, 443)]
}
sd = ssdp.check_fish(('/DeviceDescription.json', nd))
if not sd:
try:
sd = ssdp.check_fish(('/DeviceDescription.json', nd))
if not sd:
return addr, False
sd['hwaddr'] = sd['attributes']['mac-address']
nh = xcc.NodeHandler(sd, configmanager)
nh.scan()
detected(nh.info)
except Exception:
return addr, False
sd['hwaddr'] = sd['attributes']['mac-address']
nh = xcc.NodeHandler(sd, configmanager)
nh.scan()
detected(nh.info)
return addr, True
rpool = eventlet.greenpool.GreenPool(512)
for count in iterate_addrs(addresses, True):