fixed lint error

This commit is contained in:
jenkins-x-bot 2020-01-13 23:09:58 +02:00
parent 8d957f22af
commit cd7d9aee55
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class VaultSourcePlugin(SourcePlugin):
client.token = token client.token = token
if auth_method == 'kubernetes': if auth_method == 'kubernetes':
token_path = '/var/run/secrets/kubernetes.io/serviceaccount/token' token_path = '/var/run/secrets/kubernetes.io/serviceaccount/token'
with open(token_path, 'r') as f: with open(token_path, 'r') as f:
jwt = f.read() jwt = f.read()
client.auth_kubernetes(auth_key, jwt) client.auth_kubernetes(auth_key, jwt)