dbx icon indicating copy to clipboard operation
dbx copied to clipboard

`dbx sync` ignores profile from `.dbx/project.json`

Open fjakobs opened this issue 3 years ago • 2 comments

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

fjakobs avatar Jun 28 '22 21:06 fjakobs

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 avatar Jun 29 '22 06:06 pietern

@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.

fjakobs avatar Jun 29 '22 13:06 fjakobs

resolved in linked PR

renardeinside avatar Aug 17 '22 20:08 renardeinside

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

gpadavala avatar Sep 06 '22 16:09 gpadavala