Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gruebel committed Nov 5, 2023
1 parent e4190e6 commit 09295c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion checkov/common/images/image_referencer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 09295c8

Please sign in to comment.