This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Commit bfc07e1
authored
fix: detect correct auth when ADC env var is set but empty (#1374)
Treat empty strings as if the env var was not set. This fixes an issue where an environment variable for `GOOGLE_APPLICATION_CREDENTIALS` is set, but it empty. Because the default sentinel is `None`, the auth library attempts to load this file. Some systems can set or update an env var, but not unset an env var (e.g. Docker).
Fixes: https://togithub.com/googleapis/python-pubsub/issues/9831 parent 383c982 commit bfc07e1Copy full SHA for bfc07e1
1 file changed
+6-6Lines changed: 6 additions & 6 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- google/auth
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
330 | 330 | |
331 | 331 | |
332 | 332 | |
333 | | - |
| 333 | + |
334 | 334 | |
335 | 335 | |
336 | | - |
| 336 | + |
| 337 | + |
337 | 338 | |
338 | 339 | |
339 | | - |
| 340 | + |
340 | 341 | |
341 | 342 | |
342 | 343 | |
343 | 344 | |
344 | | - |
| 345 | + |
345 | 346 | |
346 | 347 | |
347 | 348 | |
348 | 349 | |
349 | | - |
| 350 | + |
350 | 351 | |
351 | 352 | |
352 | 353 | |
353 | 354 | |
354 | 355 | |
355 | 356 | |
356 | 357 | |
357 | | - |
358 | 358 | |
359 | 359 | |
360 | 360 | |
|
0 commit comments