File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,11 @@ def build_from_document(
441
441
raise MutualTLSChannelError (
442
442
"ClientOptions.client_cert_source is not supported, please use ClientOptions.client_encrypted_cert_source."
443
443
)
444
- if client_options and client_options .client_encrypted_cert_source :
444
+ if (
445
+ client_options
446
+ and hasattr (client_options , "client_encrypted_cert_source" )
447
+ and client_options .client_encrypted_cert_source
448
+ ):
445
449
client_cert_to_use = client_options .client_encrypted_cert_source
446
450
elif adc_cert_path and adc_key_path and mtls .has_default_client_cert_source ():
447
451
client_cert_to_use = mtls .default_client_encrypted_cert_source (
Original file line number Diff line number Diff line change 41
41
"httplib2>=0.9.2,<1dev" ,
42
42
"google-auth>=1.16.0" ,
43
43
"google-auth-httplib2>=0.0.3" ,
44
- "google-api-core>=1.13 .0,<2dev" ,
44
+ "google-api-core>=1.17 .0,<2dev" ,
45
45
"six>=1.6.1,<2dev" ,
46
46
"uritemplate>=3.0.0,<4dev" ,
47
47
]
You can’t perform that action at this time.
0 commit comments