We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c355cc commit 4e2f47bCopy full SHA for 4e2f47b
google/auth/transport/_mtls_helper.py
@@ -421,7 +421,7 @@ def check_use_client_cert():
421
"""
422
use_client_cert = os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE")
423
### Check if the value of GOOGLE_API_USE_CLIENT_CERTIFICATE is unset.
424
- if use_client_cert == "" or use_client_cert is None:
+ if not use_client_cert:
425
cert_path = os.getenv("GOOGLE_API_CERTIFICATE_CONFIG")
426
if cert_path:
427
with open(cert_path, "r") as f:
0 commit comments