databricks / cli

Databricks CLI
Other
150 stars 56 forks source link

Databricks CLI auth login command removes cluster id #1897

Open frbaxter-kr opened 1 week ago

frbaxter-kr commented 1 week ago

Describe the issue

Starting with Databricks CLI v0.233.0, doing a "databricks auth login" removes data from my profile entry.

Steps to reproduce the behavior

My profile before: [test] cluster_id = 0816-163139-kqxcega3 host = https://adb-9999999999999999.1.azuredatabricks.net auth_type = databricks-cli

$ databricks auth login

My profile after: [test] host = https://adb-9999999999999999.1.azuredatabricks.net auth_type = databricks-cli

Expected Behavior

Doing a login should not delete profile information, it should only authenticate.

Actual Behavior

My profile was ruined.

OS and CLI version

Databricks CLI v0.233.0

Is this a regression?

Yes, all versions before this worked correctly.

Debug Logs

N/A