Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
HadhemiDD committed Jul 3, 2024
1 parent 958819e commit ddcad80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kafka_consumer/datadog_checks/kafka_consumer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ 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' and os.path.exists('/opt/datadog-agent/embedded/ssl/certs/cacert.pem'):
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):
Expand Down

0 comments on commit ddcad80

Please sign in to comment.