2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix handling without olduuid in database

This commit is contained in:
Jarrod Johnson 2022-02-23 10:13:06 -05:00
parent 8f4846c248
commit e390618dd9

View File

@ -1192,7 +1192,7 @@ def discover_node(cfg, handler, info, nodename, manual):
return True
if info['handler'] == pxeh:
olduuid = dp.get(nodename, {}).get('id.uuid', {}).get(
'value', None)
'value', '')
if olduuid.lower() != info['uuid']:
log.log({'info': 'Detected {0}, but discovery.policy is not set to a '
'value allowing discovery (open, permissive, or pxe)'.format(