mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-15 12:17:47 +00:00
Attempt to relocate convention for 'super tenant' to more definitively segregate the two concepts
This commit is contained in:
parent
4c68da0d3b
commit
97a52ed775
@ -202,7 +202,13 @@ class ConfigManager(object):
|
||||
def __init__(self, tenant, decrypt=False):
|
||||
global _cfgstore
|
||||
self.decrypt = decrypt
|
||||
if 'tenant' not in _cfgstore:
|
||||
if tenant is None:
|
||||
self.tenant = None
|
||||
if 'main' not in _cfgstore:
|
||||
_cfgstore['main'] = {'id': None}
|
||||
self._cfgstore = _cfgstore['main']
|
||||
return
|
||||
elif 'tenant' not in _cfgstore:
|
||||
_cfgstore['tenant'] = {tenant: {'id': tenant}}
|
||||
self._bg_sync_to_file()
|
||||
elif tenant not in _cfgstore['tenant']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user