Unverified Commit 884652df authored by jamesge's avatar jamesge Committed by GitHub
Browse files

minor: use smart_str to convert bytes to str

parent 50dbe46f
Showing with 1 addition and 1 deletion
+1 -1
......@@ -261,7 +261,7 @@ def get_service_account_token(k8s_client) -> Optional[str]:
if not item.metadata.name.startswith(token_prefix):
continue
return base64.b64decode(item.data["token"]).decode('utf-8')
return smart_str(base64.b64decode(item.data["token"]))
def create_service_account_rbac(k8s_client, ctx):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment