databricks-cli/libs
Pieter Noordhuis a17876480a
Include [DEFAULT] section header when writing ~/.databrickscfg (#464)
## Changes

The ini library omits the default section header and in doing so breaks
compatibility with Python's config parser. It raises:

```
Error: MissingSectionHeaderError: File contains no section headers.
```

This commit makes sure the DEFAULT section header is included.

If the config file doesn't include a DEFAULT section itself, we include
a comment describing its purpose.

## Tests

New tests pass. Manually confirmed the DEFAULT section header is
included.

---------

Co-authored-by: PaulCornellDB <paul.cornell@databricks.com>
2023-06-13 16:41:56 +00:00
..
auth Add profile on `databricks auth login` (#423) 2023-06-02 13:49:39 +02:00
cmdio Tweak profile prompt (#454) 2023-06-09 13:56:35 +02:00
databrickscfg Include [DEFAULT] section header when writing ~/.databrickscfg (#464) 2023-06-13 16:41:56 +00:00
errs Added ability for deferred mutator execution (#380) 2023-05-16 18:01:50 +02:00
filer Add workspace import-dir command (#456) 2023-06-12 21:03:46 +02:00
fileset Don't sync symlink folders (#205) 2023-02-15 17:02:54 +01:00
flags Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
git Fix tests for new repository name (#390) 2023-05-16 19:02:07 +02:00
locker Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
log Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
notebook Error out if notebook file does not exist locally (#261) 2023-03-21 18:13:16 +01:00
sync Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
terraform Add bundle destroy command (#300) 2023-04-06 12:54:58 +02:00
testfile Refactor and cover edge cases in sync integration tests (#160) 2023-01-10 13:16:30 +01:00