Skip to content

Commit 24f7c1b

Browse files
Merge pull request #77 from cbuchacher/fix-we-need-a-path
fix `we need a path` error
2 parents 89a3289 + 1bdba21 commit 24f7c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node-client/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export class KubeConfig {
228228
// Format in file is {<query>}, so slice it out and add '$'
229229
pathKey = '$' + pathKey.slice(1, -1);
230230

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

0 commit comments

Comments
 (0)