mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-05 20:35:38 +00:00
Fix non-root user issue with python3
This commit is contained in:
@ -119,6 +119,8 @@ def _get_usertenant(name, tenant=False):
|
||||
administrator account a tenant gets.
|
||||
Otherwise, just assume a user in the default tenant
|
||||
"""
|
||||
if not isinstance(name, bytes):
|
||||
name = name.encode('utf-8')
|
||||
if not isinstance(tenant, bool):
|
||||
# if not boolean, it must be explicit tenant
|
||||
user = name
|
||||
|
Reference in New Issue
Block a user