mirror of
https://github.com/xcat2/confluent.git
synced 2026-11-23 02:42:26 +00:00
Copy per-node attribute data in set_node_attributes
nodedefine with a noderange passed one dict for all nodes, so they shared one stored groups list. Later group membership changes then updated inheritance for only the first node, leaving the others with values inherited from groups they no longer belong to.
This commit is contained in:
@@ -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]):
|
||||
|
||||
Reference in New Issue
Block a user