I noticed that when trying to use databricks sync, the --profile flag is being ignored.
When I run
databricks sync --profile my-profile . /Users/my.name@website.com/remote/folder
I get a "no such host" error, showing it is trying to connect to the host under the [default] section in .databrickscfg (Which in my case is an old host that does indeed not exist).
I expect to see that it either uses the host listed under [my-profile] or raise an error if my-profile is not defined. This is the case when I use the --profile flag in databricks fs ls for example.
Running on: Databricks CLI v0.206.0
I noticed that when trying to use
databricks sync, the--profileflag is being ignored.When I run
I get a "no such host" error, showing it is trying to connect to the host under the
[default]section in.databrickscfg(Which in my case is an old host that does indeed not exist).I expect to see that it either uses the host listed under
[my-profile]or raise an error ifmy-profileis not defined. This is the case when I use the--profileflag indatabricks fs lsfor example.Running on: Databricks CLI v0.206.0