Skip to content

Commit 0ea1753

Browse files
sudhirvermajrichter1
authored andcommitted
Cancelling the login type quick pick automatically selects token login
1 parent 846a8bf commit 0ea1753

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/openshift/cluster.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export class Cluster extends OpenShiftItem {
7272
const response = await Cluster.requestLoginConfirmation();
7373
if (response !== 'Yes') return null;
7474
const loginMethod = await vscode.window.showQuickPick(['Credentials', 'Token'], {placeHolder: 'Select the way to log in to the cluster.'});
75+
if (!loginMethod) return null;
7576
if (loginMethod === "Credentials") {
7677
return Cluster.credentialsLogin(true);
7778
} else {

0 commit comments

Comments
 (0)