From 10ac1756f1abb2c2448e1eb869a400b831ce11ca Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 29 Oct 2020 15:48:33 -0400 Subject: [PATCH] Do not clear the entire nodes lookup on remap remap may only amend part of the map, do not cause that to clear out the good data. --- confluent_server/confluent/discovery/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/discovery/core.py b/confluent_server/confluent/discovery/core.py index b4a3ab80..9b879354 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -1292,11 +1292,11 @@ known_pxe_uuids = {} def _map_unique_ids(nodes=None): global nodes_by_uuid global nodes_by_fprint - nodes_by_uuid = {} - nodes_by_fprint = {} # Map current known ids based on uuid and fingperprints for fast lookup cfg = cfm.ConfigManager(None) if nodes is None: + nodes_by_uuid = {} + nodes_by_fprint = {} nodes = cfg.list_nodes() bigmap = cfg.get_node_attributes(nodes, ('id.uuid',