fixed lint error

This commit is contained in:
jenkins-x-bot 2020-01-12 01:51:48 +02:00
parent 409b499217
commit cad56c813e
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ class VaultSourcePlugin(SourcePlugin):
with open(auth_key, "r") as tfile:
token = tfile.readline().rstrip("\n")
client.token = token
if auth_method == 'kubernetes':
f = open('/var/run/secrets/kubernetes.io/serviceaccount/token')
jwt = f.read()
@ -275,7 +275,7 @@ class VaultDestinationPlugin(DestinationPlugin):
with open(auth_key, "r") as tfile:
token = tfile.readline().rstrip("\n")
client.token = token
if auth_method == 'kubernetes':
f = open('/var/run/secrets/kubernetes.io/serviceaccount/token')
jwt = f.read()