Skip to content

Commit 60078b2

Browse files
committed
fix: correct ca_cert_path value from bool to env var content
1 parent 18fae82 commit 60078b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Copyright (c) Cosmo Tech corporation.
22
# Licensed under the MIT license.
33

4-
__version__ = '0.8.5'
4+
__version__ = '0.8.6'

cosmotech/coal/cosmotech_api/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get_api_client() -> (cosmotech_api.ApiClient, str):
3939
client_id=os.environ.get("IDP_CLIENT_ID"),
4040
realm_name=os.environ.get("IDP_TENANT_ID"),
4141
client_secret_key=os.environ.get("IDP_CLIENT_SECRET"))
42-
if ca_cert_path := os.environ.get("IDP_CA_CERT") and pathlib.Path(os.environ.get("IDP_CA_CERT")).is_file():
42+
if (ca_cert_path := os.environ.get("IDP_CA_CERT")) and pathlib.Path(os.environ.get("IDP_CA_CERT")).is_file():
4343
LOGGER.info("Found Certificate Authority override for IDP connection, using it.")
4444
keycloack_parameters["cert"] = ca_cert_path
4545

0 commit comments

Comments
 (0)