File tree 1 file changed +3
-3
lines changed
google/api_core/operations_v1 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -293,14 +293,14 @@ def __init__(
293
293
client_options = client_options_lib .ClientOptions ()
294
294
295
295
# Create SSL credentials for mutual TLS if needed.
296
- use_client_cert = os .getenv ("GOOGLE_API_USE_CLIENT_CERTIFICATE" , "false" )
297
- if use_client_cert . lower () not in ("true" , "false" ):
296
+ use_client_cert = os .getenv ("GOOGLE_API_USE_CLIENT_CERTIFICATE" , "false" ). lower ()
297
+ if use_client_cert not in ("true" , "false" ):
298
298
raise ValueError (
299
299
"Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`"
300
300
)
301
301
client_cert_source_func = None
302
302
is_mtls = False
303
- if use_client_cert . lower () == "true" :
303
+ if use_client_cert == "true" :
304
304
if client_options .client_cert_source :
305
305
is_mtls = True
306
306
client_cert_source_func = client_options .client_cert_source
You can’t perform that action at this time.
0 commit comments