Skip to content

Commit

Permalink
Merge pull request #77 from cbuchacher/fix-we-need-a-path
Browse files Browse the repository at this point in the history
fix `we need a path` error
  • Loading branch information
brendandburns authored Aug 13, 2018
2 parents 89a3289 + 1bdba21 commit 24f7c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-client/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export class KubeConfig {
// Format in file is {<query>}, so slice it out and add '$'
pathKey = '$' + pathKey.slice(1, -1);

config['access-token'] = jsonpath.query(resultObj, path);
config['access-token'] = jsonpath.query(resultObj, pathKey);
token = 'Bearer ' + config['access-token'];
} else {
throw new Error('Token is expired!');
Expand Down

0 comments on commit 24f7c1b

Please sign in to comment.