diff --git a/kafka_consumer/datadog_checks/kafka_consumer/config.py b/kafka_consumer/datadog_checks/kafka_consumer/config.py index b682416d33abda..4ec3766df14713 100644 --- a/kafka_consumer/datadog_checks/kafka_consumer/config.py +++ b/kafka_consumer/datadog_checks/kafka_consumer/config.py @@ -71,9 +71,9 @@ def __init__(self, init_config, instance, log) -> None: self._tls_verify = "true" 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': - self._tls_ca_cert = '/opt/datadog-agent/embedded/ssl/certs/cacert.pem' + self._tls_ca_cert = '/opt/datadog-agent/embedded/ssl/certs/cacert.pem' def validate_config(self): if not self._kafka_connect_str: