Skip to content

Commit 00b31dc

Browse files
committed
Fix formatting issues
1 parent 7ff77af commit 00b31dc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

kubelet/datadog_checks/kubelet/kubelet.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ class KubeletCheck(
165165

166166
def __init__(self, name, init_config, instances):
167167
if os.getenv("DD_KUBERNETES_KUBELET_CORE_CHECK_ENABLED") == "true":
168-
raise SkipInstanceError("The kubelet core check is enabled, skipping initialization of the python kubelet check")
168+
raise SkipInstanceError(
169+
"The kubelet core check is enabled, skipping initialization of the python kubelet check"
170+
)
169171
self.KUBELET_METRIC_TRANSFORMERS = {
170172
'kubelet_container_log_filesystem_used_bytes': self.kubelet_container_log_filesystem_used_bytes,
171173
'rest_client_request_latency_seconds': self.rest_client_latency,

kubelet/tests/test_kubelet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from datadog_checks.base.checks.kubelet_base.base import KubeletCredentials
1717
from datadog_checks.base.errors import SkipInstanceError
1818
from datadog_checks.base.utils.date import parse_rfc3339
19-
from datadog_checks.base.errors import SkipInstanceError
2019
from datadog_checks.dev.http import MockResponse
2120
from datadog_checks.kubelet import KubeletCheck, PodListUtils
2221

@@ -1564,8 +1563,9 @@ def test_kubelet_unavailable_check_can_init(monkeypatch):
15641563
check = mock_kubelet_check(monkeypatch, [instance], kube_version=None)
15651564
assert check is not None
15661565

1566+
15671567
def test_kubelet_does_not_init_if_config_var_set_to_true(monkeypatch):
15681568
monkeypatch.setenv("DD_KUBERNETES_KUBELET_CORE_CHECK_ENABLED", "true")
15691569
with pytest.raises(SkipInstanceError):
15701570
KubeletCheck('kubelet', {}, [{}])
1571-
return
1571+
return

0 commit comments

Comments
 (0)