Skip to content

Commit 553df8d

Browse files
authored
Fix login flow in the databricks-cli-check by removing trailing slashes from the URL (#1700)
## Changes "databricks auth login" specifically doesn't like trailing slashes in the URL. Bundle commands normilize the host internally and don't have this problem. ## Tests Manual and existing e2e tests
1 parent 9d46b75 commit 553df8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/databricks-vscode/src/configuration/auth/DatabricksCliCheck.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ export class DatabricksCliCheck implements Disposable {
104104

105105
private async login(cancellationToken?: CancellationToken): Promise<void> {
106106
try {
107+
const host = this.authProvider.host.toString().replace(/\/+$/, "");
107108
await execFile(
108109
this.authProvider.cliPath,
109-
["auth", "login", "--host", this.authProvider.host.toString()],
110+
["auth", "login", "--host", host],
110111
{},
111112
cancellationToken
112113
);

0 commit comments

Comments
 (0)