Skip to content

Commit 54932c9

Browse files
committed
Fix 'cannot trim undefined' error when logging in with token
Fixes redhat-developer#3514 Signed-off-by: David Thompson <[email protected]>
1 parent 3696f6d commit 54932c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openshift/cluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ export class Cluster extends OpenShiftItem {
765765
ocToken = userToken;
766766
}
767767
return Progress.execFunctionWithProgress(`Login to the cluster: ${clusterURL}`, () =>
768-
Oc.Instance.loginWithToken(clusterURL, token)
768+
Oc.Instance.loginWithToken(clusterURL, ocToken)
769769
.then(() => Cluster.loginMessage(clusterURL))
770770
.catch((error) =>
771771
Promise.reject(

0 commit comments

Comments
 (0)