Skip to content

Commit d9fcf04

Browse files
committed
[kubernetes] strip spaces around bearer token
1 parent 6f177c2 commit d9fcf04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/kubernetes/kubeutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def get_auth_token(cls, instance):
445445
token_path = instance.get('bearer_token_path', cls.AUTH_TOKEN_PATH)
446446
try:
447447
with open(token_path) as f:
448-
return f.read()
448+
return f.read().strip()
449449
except IOError as e:
450450
log.error('Unable to read token from {}: {}'.format(token_path, e))
451451

0 commit comments

Comments
 (0)