From e390618dd9c8e482ba6e40c49d2c56c8a052e8fb Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 23 Feb 2022 10:13:06 -0500 Subject: [PATCH] Fix handling without olduuid in database --- confluent_server/confluent/discovery/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/discovery/core.py b/confluent_server/confluent/discovery/core.py index 6f986c6d..280cc1ac 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -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(