databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

Do not error if we cannot prompt for a profile in `auth login` #1745

Closed shreyas-goenka closed 3 weeks ago

shreyas-goenka commented 3 weeks ago

Changes

With https://github.com/databricks/cli/pull/1370 we started to error if a profile name was not provided in a non-tty setting. The Databricks VSCode extension, however, uses the auth login command to simply refresh the tokens. Thus, this PR is a regression fix for that use case.

Tests

Manually, databricks auth login --host https://e2-dogfood.staging.cloud.databricks.com no longer errors. Instead it successfully refreshes the credentials.

shreyas-goenka commented 3 weeks ago

I don't think so, couldn't find one on a superficial scan.