mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +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:
parent
20a37f8db5
commit
5f46899358
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user