From 09295c84950bbd8331d4f3fc52d55efbf398dccd Mon Sep 17 00:00:00 2001 From: gruebel Date: Sun, 5 Nov 2023 12:54:04 +0100 Subject: [PATCH] fix linting --- checkov/common/images/image_referencer.py | 2 +- .../kubernetes/checks/resource/k8s/PeerClientCertAuthTrue.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/checkov/common/images/image_referencer.py b/checkov/common/images/image_referencer.py index 96383184c78..92d439f7cbf 100644 --- a/checkov/common/images/image_referencer.py +++ b/checkov/common/images/image_referencer.py @@ -103,7 +103,7 @@ def inspect(image_name: str) -> str: image = client.images.get(image_name) except Exception: image = client.images.pull(image_name) - return image.short_id + return image.short_id return image.short_id except Exception: logging.debug(f"failed to pull docker image={image_name}", exc_info=True) diff --git a/checkov/kubernetes/checks/resource/k8s/PeerClientCertAuthTrue.py b/checkov/kubernetes/checks/resource/k8s/PeerClientCertAuthTrue.py index 347afb0c80c..eabae61c5ba 100644 --- a/checkov/kubernetes/checks/resource/k8s/PeerClientCertAuthTrue.py +++ b/checkov/kubernetes/checks/resource/k8s/PeerClientCertAuthTrue.py @@ -16,7 +16,7 @@ def __init__(self) -> None: def scan_spec_conf(self, conf: dict[str, Any]) -> CheckResult: if conf.get("metadata", {}).get("name") == "etcd": - containers = conf.get("spec",{}).get("containers") + containers = conf.get("spec", {}).get("containers") if containers: for container in containers: if container.get("args") is not None: