mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-04 12:07:58 +00:00
Provide cleaner error on requesting non-existant tenant.
This commit is contained in:
@@ -1414,7 +1414,7 @@ class ConfigManager(object):
|
||||
elif 'tenant' not in _cfgstore and create_tenant:
|
||||
_cfgstore['tenant'] = {tenant: {}}
|
||||
self._bg_sync_to_file()
|
||||
elif tenant not in _cfgstore['tenant'] and create_tenant:
|
||||
elif tenant not in _cfgstore.get('tenant', {}) and create_tenant:
|
||||
_cfgstore['tenant'][tenant] = {}
|
||||
self._bg_sync_to_file()
|
||||
elif tenant and tenant not in _cfgstore.get('tenant', {}):
|
||||
|
||||
Reference in New Issue
Block a user