From 2e1bed1c16db6fad80481af85fff27a0cda15cf2 Mon Sep 17 00:00:00 2001 From: Brandon Catubig Date: Tue, 22 May 2018 12:15:09 -0500 Subject: [PATCH] Add '==' to base64 decode for py3 --- config/kube_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/kube_config.py b/config/kube_config.py index b1e2136e..d66e1297 100644 --- a/config/kube_config.py +++ b/config/kube_config.py @@ -233,7 +233,7 @@ def _load_oid_token(self): if PY3: jwt_attributes = json.loads( - base64.b64decode(parts[1]).decode('utf-8') + base64.b64decode(parts[1] + "==").decode('utf-8') ) else: jwt_attributes = json.loads(