File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
google/api_core/operations_v1 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -293,14 +293,14 @@ def __init__(
293293 client_options = client_options_lib .ClientOptions ()
294294
295295 # 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" ):
298298 raise ValueError (
299299 "Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`"
300300 )
301301 client_cert_source_func = None
302302 is_mtls = False
303- if use_client_cert . lower () == "true" :
303+ if use_client_cert == "true" :
304304 if client_options .client_cert_source :
305305 is_mtls = True
306306 client_cert_source_func = client_options .client_cert_source
You can’t perform that action at this time.
0 commit comments