From 958819e8d73ad2d488b8963ba85a7f74e7fe823b Mon Sep 17 00:00:00 2001 From: HadhemiDD Date: Wed, 3 Jul 2024 15:58:41 +0100 Subject: [PATCH] set default ssl path --- kafka_consumer/datadog_checks/kafka_consumer/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kafka_consumer/datadog_checks/kafka_consumer/config.py b/kafka_consumer/datadog_checks/kafka_consumer/config.py index 4ec3766df14713..e63781cdb3cf0e 100644 --- a/kafka_consumer/datadog_checks/kafka_consumer/config.py +++ b/kafka_consumer/datadog_checks/kafka_consumer/config.py @@ -72,7 +72,7 @@ def __init__(self, init_config, instance, log) -> None: else: self._tls_verify = "true" if is_affirmative(instance.get("tls_verify", True)) else "false" - if not self._tls_ca_cert and os.name != 'nt': + if not self._tls_ca_cert and os.name != 'nt' and os.path.exists('/opt/datadog-agent/embedded/ssl/certs/cacert.pem'): self._tls_ca_cert = '/opt/datadog-agent/embedded/ssl/certs/cacert.pem' def validate_config(self):