mirror of
https://github.com/xcat2/confluent.git
synced 2026-04-13 12:21:30 +00:00
Prevent clear_configuration from invaliding existing ConfigManager
Clear out the existing dictionary instead of replacing it. This prevents configmanager objects from being stuck.
This commit is contained in:
@@ -638,7 +638,10 @@ def clear_configuration():
|
||||
stop_following()
|
||||
_oldcfgstore = _cfgstore
|
||||
_oldtxcount = _txcount
|
||||
_cfgstore = {}
|
||||
if _cfgstore is None or 'main' not in _cfgstore:
|
||||
_cfgstore = {}
|
||||
else:
|
||||
_cfgstore['main'].clear()
|
||||
_txcount = 0
|
||||
|
||||
def commit_clear():
|
||||
|
||||
Reference in New Issue
Block a user