Cannot configure an auth profile with a cluster using databricks auth login --host https://***.databricks.com --configure-cluster when my workspace has multiple clusters with the same name.
It seems like the CLI converts clusters to a map using cluster name as an id, which fails when there are multiple such names. Databricks doesn't prevent users from creating multiple clusters with the same name.
Steps to reproduce the behavior
Create multiple clusters with the same name in your workspace
Run databricks auth login --host https://***.databricks.com --configure-cluster
Expected Behavior
I should be able to create a profile and chose a cluster
Actual Behavior
Profile config is not created, and I get this error:
databricks auth login --host https://***.cloud.databricks.com --configure-cluster
✔ Databricks Profile Name: ***
⢿ Loading list of clusters to select fromError: failed to load clusters list. Original error: duplicate .ClusterName: ***
Describe the issue
Cannot configure an auth profile with a cluster using
databricks auth login --host https://***.databricks.com --configure-cluster
when my workspace has multiple clusters with the same name.It seems like the CLI converts clusters to a map using cluster name as an id, which fails when there are multiple such names. Databricks doesn't prevent users from creating multiple clusters with the same name.
Steps to reproduce the behavior
databricks auth login --host https://***.databricks.com --configure-cluster
Expected Behavior
I should be able to create a profile and chose a cluster
Actual Behavior
Profile config is not created, and I get this error:
OS and CLI version
macOS, CLI from the latest
main
commitIs this a regression?
No
Debug Logs
N/A