2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Update attribute inheritance on rename

This commit is contained in:
Jarrod Johnson 2024-10-16 11:40:00 -04:00
parent 81b57d5db6
commit 3560415668

View File

@ -2353,6 +2353,9 @@ class ConfigManager(object):
lidx = self._cfgstore['nodes'][node]['groups'].index(name)
self._cfgstore['nodes'][node]['groups'][lidx] = renamemap[name]
_mark_dirtykey('nodes', node, self.tenant)
for node in self._cfgstore['nodegroups'][renamemap[name]].get('nodes', []):
self._node_removed_from_group(node, name, {})
self._node_added_to_group(node, renamemap[name], {})
self._bg_sync_to_file()