diff --git a/flytekit/clients/auth_helper.py b/flytekit/clients/auth_helper.py index 23ada59c38..ce2992723f 100644 --- a/flytekit/clients/auth_helper.py +++ b/flytekit/clients/auth_helper.py @@ -177,7 +177,8 @@ def get_channel(cfg: PlatformConfig, **kwargs) -> grpc.Channel: credentials = bootstrap_creds_from_server(cfg.endpoint) elif cfg.ca_cert_file_path: credentials = grpc.ssl_channel_credentials( - crypto.dump_certificate(crypto.FILETYPE_PEM, load_cert(cfg.ca_cert_file_path))) + crypto.dump_certificate(crypto.FILETYPE_PEM, load_cert(cfg.ca_cert_file_path)) + ) else: credentials = grpc.ssl_channel_credentials( root_certificates=kwargs.get("root_certificates", None),