From 3903cda789e1879f98c966e384b90397a333d46a 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 65986a8e..9d504f35 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -1282,11 +1282,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',