2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-15 20:27:50 +00:00

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.
This commit is contained in:
Jarrod Johnson 2020-10-29 15:48:33 -04:00
parent 95659db00a
commit 10ac1756f1

View File

@ -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',