Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

databricks configure does not respect DATABRICKS_CONFIG_FILE env var #1473

Closed
vinnyt123 opened this issue Jun 5, 2024 · 1 comment
Closed
Labels
CLI CLI related issues

Comments

@vinnyt123
Copy link

Describe the issue

When the DATABRICKS_CONFIG_FILE env var is set and you rundatabricks configure --host {URL}, it still saves the .databrickscfg file to the home directory.

Steps to reproduce the behavior

➜  databricks -v
Databricks CLI v0.221.0
➜  DATABRICKS_CONFIG_FILE="~/Projects/temp/.databrickscfg" databricks configure --host REDACTED --debug
16:20:57  INFO start pid=68648 version=0.221.0 args="databricks, configure, --host, REDACTED, --debug"
Personal access token: ************************************
16:21:02  INFO Backing up in /Users/vinny.tunnell/.databrickscfg.bak pid=68648
16:21:02  INFO Overwriting /Users/vinny.tunnell/.databrickscfg pid=68648
16:21:02  INFO completed execution pid=68648 exit_code=0

Expected Behavior

The .databrickscfg file should be written to the location specified in the DATABRICKS_CONFIG_FILE env var.

Actual Behavior

The .databrickscfg was written to the default DATABRICKS_CONFIG_FILE location (home dir).

OS and CLI version

Mac OS Sonoma v14.5, CLI version v0.221.0.

Is this a regression?

Did this work in a previous version of the CLI? It used to work around 1 year ago. Can't remember which version.

Debug Logs

Provided above.

@andrewnester
Copy link
Contributor

The fix has been merged and will be released in upcoming CLI release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI CLI related issues
Projects
None yet
Development

No branches or pull requests

2 participants