Commit f29ad4a
authored
Reduce redundant warning messages in azure-cli credential provider (#410)
## Changes
This warning is a bit noisy: in the happy path, we print it multiple
times, and even if we don't use Azure CLI auth, we may print it anyways.
Also, it will be printed always when using account-level authentication.
This PR reduces the noise for this warning by only printing it when we
are certainly going to use Azure CLI auth, authenticating to a
workspace, and can't get the subscription ID (e.g. because it is not
configured).
## Tests
<!--
How is this tested? Please see the checklist below and also describe any
other relevant tests
-->
- [x] Ran locally: with accounts client, no warning is printed, and with
workspace client, only one warning is printed.1 parent d4c160f commit f29ad4a
1 file changed
+9
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
| 330 | + | |
335 | 331 | | |
336 | 332 | | |
337 | 333 | | |
338 | 334 | | |
339 | 335 | | |
340 | | - | |
| 336 | + | |
341 | 337 | | |
342 | | - | |
| 338 | + | |
343 | 339 | | |
344 | 340 | | |
345 | 341 | | |
| |||
368 | 364 | | |
369 | 365 | | |
370 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
371 | 372 | | |
372 | 373 | | |
373 | 374 | | |
| |||
0 commit comments