dbx
dbx copied to clipboard
`dbx sync` ignores profile from `.dbx/project.json`
Expected Behavior
dbx sync should use the same profile resolution as the other dbx commands.
Current Behavior
Currently is ignores the profile in .dbx/project.json.
Your Environment
- dbx version used:$ version ~> 0.6.3
You mean the Databricks profile in ~/.databrickscfg, not AWS_PROFILE, I presume?
The profile is pulled from DBX_CLI_PROFILE.
See: https://github.com/databrickslabs/dbx/blob/2d09a50015a41078edce696b9b58d1c1bf17fb47/dbx/api/auth.py#L15-L28
@pietern I don't know what I was thinking :-). The problem is that most dbx commands take the profile from the dbx config, while dbx sync ignores it.
resolved in linked PR
it still doesn't pick the "default" environment unless explicitly specified
dbx sync --environment "default" -d <repo_name>
but
dbx sync -d <repo_name> should also pick the default environment