-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
profile flag seems to be ignored in databricks sync command #836
Comments
## Changes Fixes #836 ## Tests Manually running `sync` command with and without the flag Integration tests pass as well ``` --- PASS: TestAccSyncFullFileSync (13.38s) PASS coverage: 39.1% of statements in ./... ok github.com/databricks/cli/internal 14.148s coverage: 39.1% of statements in ./... --- PASS: TestAccSyncIncrementalFileSync (11.38s) PASS coverage: 39.1% of statements in ./... ok github.com/databricks/cli/internal 11.674s coverage: 39.1% of statements in ./... ```
The fix has been merged and will be released in the next CLI release |
That was very quick. Great work! :) |
@andrewnester I just tried out the latest version: I still get the error: when running I deliberately put a fake host in the default section of my |
## Changes Fixes #836 ## Tests Manually running `sync` command with and without the flag Integration tests pass as well ``` --- PASS: TestAccSyncFullFileSync (13.38s) PASS coverage: 39.1% of statements in ./... ok github.com/databricks/cli/internal 14.148s coverage: 39.1% of statements in ./... --- PASS: TestAccSyncIncrementalFileSync (11.38s) PASS coverage: 39.1% of statements in ./... ok github.com/databricks/cli/internal 11.674s coverage: 39.1% of statements in ./... ```
## Changes Since we use `root.MustWorkspaceClient` now, we should use already initialised version of WorkspaceClient instead of instantiating a new one. Fixes #836
@jmeidam thanks for raising this! indeed, it seems to be not working due to a bug in CLI, it's now fixed in the main branch and will be released in the next CLI version. |
Bytheway, I just noticed that the sync command is not in the docs linked to from the readme: And the docs I can find online are missing information on how to define includes and excludes |
You can find docs on And for the commands reference you linked, we have a followup to address this but thanks for calling this out |
I noticed that when trying to use
databricks sync
, the--profile
flag 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-profile
is not defined. This is the case when I use the--profile
flag indatabricks fs ls
for example.Running on: Databricks CLI v0.206.0
The text was updated successfully, but these errors were encountered: