From 9eceda0636784e49190a8dda44f27738b26cfcf5 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 10 Oct 2019 16:04:23 -0400 Subject: [PATCH] Fix non-root user issue with python3 --- confluent_server/confluent/auth.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/auth.py b/confluent_server/confluent/auth.py index eb11efc8..6c43d5c3 100644 --- a/confluent_server/confluent/auth.py +++ b/confluent_server/confluent/auth.py @@ -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