Commit 2af50c6
Append profile to databrickscfg instead of writing the full file (#1060)
## Changes
* Writing the full .databrickscfg leads to unintended consequences such
as deletion of comments and writing invalid profiles.
* We should append to the file instead.
## Tests
<!-- How is this tested? -->
---------
Co-authored-by: Ilia Babanov <ilia.babanov@databricks.com>1 parent fd8ae92 commit 2af50c6
1 file changed
+10
-5
lines changedLines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
373 | | - | |
| 374 | + | |
| 375 | + | |
374 | 376 | | |
375 | 377 | | |
376 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
377 | 381 | | |
378 | 382 | | |
379 | | - | |
| 383 | + | |
| 384 | + | |
380 | 385 | | |
381 | 386 | | |
382 | 387 | | |
| |||
388 | 393 | | |
389 | 394 | | |
390 | 395 | | |
391 | | - | |
| 396 | + | |
392 | 397 | | |
393 | 398 | | |
394 | 399 | | |
| |||
0 commit comments