2
0
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:
Jarrod Johnson 2013-10-08 11:51:13 -04:00
parent 4c68da0d3b
commit 97a52ed775

View File

@ -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']: