2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-19 08:52:20 +00:00

Merge pull request #382 from Obihoernchen/fix/nodedefine-shared-groups

Copy per-node attribute data in set_node_attributes
This commit is contained in:
Jarrod Johnson
2026-11-11 13:02:08 -05:00
committed by GitHub
@@ -2584,6 +2584,9 @@ class ConfigManager(object):
if skipped is not None:
skipped.append(node)
continue
# callers may pass one dict for several nodes (nodedefine with a
# noderange), give each node its own copy before storing it
attribmap[node] = copy.deepcopy(attribmap[node])
if 'groups' not in attribmap[node] and node not in self._cfgstore['nodes']:
attribmap[node]['groups'] = []
for attrname in list(attribmap[node]):