mirror of
https://github.com/xcat2/confluent.git
synced 2026-10-20 06:35:33 +00:00
Fix register
Ensure info_identifier is set if it was not set by way of safe_detected first.
This commit is contained in:
@@ -837,6 +837,11 @@ async def eval_detected(info):
|
||||
async def detected(info):
|
||||
global rechecker
|
||||
global rechecktime
|
||||
if 'info_identifier' not in info:
|
||||
infoid = info.get('hwaddr', info.get('addresses', [[None]])[0][0])
|
||||
if not infoid:
|
||||
return
|
||||
info['info_identifier'] = infoid
|
||||
if not cfm.config_is_ready():
|
||||
# drop processing of discovery data while configmanager is 'down'
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user