2
0
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:
Jarrod Johnson
2026-07-16 17:55:22 -04:00
parent 8b0fb03c66
commit 5db32996f9
@@ -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', {}):