mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Fix handling without olduuid in database
This commit is contained in:
parent
8f4846c248
commit
e390618dd9
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user