mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Mark node as 'dirty' if it's group is removed
Group removal would end up with the on-disk copy not reflecting the node membership, even though in-memory copy is fine. Fix by adding the missing dirty mark to the entry.
This commit is contained in:
parent
a175fd7345
commit
4b6899d4af
@ -1628,6 +1628,7 @@ class ConfigManager(object):
|
||||
if group in self._cfgstore['nodes'][node]['groups']:
|
||||
self._cfgstore['nodes'][node]['groups'].remove(group)
|
||||
self._node_removed_from_group(node, group, changeset)
|
||||
_mark_dirtykey('nodes', node, self.tenant)
|
||||
for node in nodes:
|
||||
if node not in self._cfgstore['nodes']:
|
||||
self._cfgstore['nodes'][node] = {'groups': [group]}
|
||||
|
Loading…
Reference in New Issue
Block a user