databricks/databricks-cli

CLI configuration mismatch

Opened this issue · 0 comments

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:

  1. Install and configure cli as above
  2. Create bundle using --profile dev
  3. Validate bundle using --profile qa

Expected behavior: The cli should override the profile passed by --profile flag