databricks-cli
databricks-cli copied to clipboard
CLI configuration mismatch
Issue: When using bundle commands I see error
panic: cannot resolve bundle auth configuration: config host mismatch: profile uses host https://qa-123.databricks.net, but CLI configured to use https://dev-123.databricks.net
Config: The .databrickscfg
file is as below
; The profile defined in the DEFAULT section is to be used as a fallback when no profile is explicitly specified.
[DEFAULT]
[qa]
host = https://qa-123.databricks.net
token = *****************
[dev]
host = https://dev-123.databricks.net
token = *****************
Steps to reproduce:
- Install and configure cli as above
- Create bundle using --profile dev
- Validate bundle using --profile qa
Expected behavior: The cli should override the profile passed by --profile flag