Commit 3f54441
authored
fix: Preserve profile name in Databricks CLI auth provider (#1877)
## Changes
When the databricks-cli auth type is used with a named profile (e.g.
from ~/.databrickscfg), the profile name was not being threaded through
to DatabricksCliAuthProvider. As a result `auth login` always used
--host, causing issues with new databricks cli when same host exists
under multiple profiles.
Notes:
The process.env["DATABRICKS_CONFIG_PROFILE"] mutation is a workaround and should be revisited once the
upstream JS SDK exposes a proper API for this.
## Tests
Manually1 parent 98fabd6 commit 3f54441
2 files changed
Lines changed: 31 additions & 5 deletions
Lines changed: 22 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
81 | 90 | | |
82 | 91 | | |
83 | 92 | | |
| |||
165 | 174 | | |
166 | 175 | | |
167 | 176 | | |
168 | | - | |
| 177 | + | |
| 178 | + | |
169 | 179 | | |
170 | 180 | | |
171 | 181 | | |
| |||
198 | 208 | | |
199 | 209 | | |
200 | 210 | | |
201 | | - | |
| 211 | + | |
| 212 | + | |
202 | 213 | | |
203 | 214 | | |
204 | 215 | | |
| |||
308 | 319 | | |
309 | 320 | | |
310 | 321 | | |
311 | | - | |
| 322 | + | |
| 323 | + | |
312 | 324 | | |
313 | 325 | | |
314 | 326 | | |
| |||
322 | 334 | | |
323 | 335 | | |
324 | 336 | | |
| 337 | + | |
325 | 338 | | |
326 | 339 | | |
327 | 340 | | |
| |||
330 | 343 | | |
331 | 344 | | |
332 | 345 | | |
| 346 | + | |
333 | 347 | | |
334 | 348 | | |
335 | 349 | | |
336 | 350 | | |
337 | | - | |
| 351 | + | |
338 | 352 | | |
339 | 353 | | |
340 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
341 | 359 | | |
342 | 360 | | |
343 | 361 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
108 | 116 | | |
109 | 117 | | |
110 | | - | |
| 118 | + | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
| |||
0 commit comments