Skip to content

Commit 5ab2bd0

Browse files
committed
fixing pylint and docstring formatting
Signed-off-by: Piotr <[email protected]>
1 parent e62b347 commit 5ab2bd0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Tests/kaas/k8s-version-policy/k8s_version_policy.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,7 @@ async def collect_cve_versions(session: aiohttp.ClientSession) -> set:
388388

389389

390390
async def run_trivy_scan(image: str) -> dict:
391-
"""
392-
Run Trivy scan on the specified image and return the results as a dictionary.
391+
"""Run Trivy scan on the specified image and return the results as a dictionary.
393392
394393
Args:
395394
image (str): The Docker image to scan.
@@ -560,10 +559,10 @@ async def main(argv):
560559

561560
try:
562561
logger.info(
563-
f"""Initiating scan on the Kubernetes cluster specified by kubeconfig at '{config.kubeconfig}'
564-
{' with context ' + config.context if config.context else ''}.
562+
f"""Initiating scan on the Kubernetes cluster specified by kubeconfig at {config.kubeconfig}
563+
with context {config.context if config.context else ''}.
565564
Fetching cluster information and verifying access.""")
566-
cluster = await get_k8s_cluster_info(config.kubeconfig, config.context)
565+
await get_k8s_cluster_info(config.kubeconfig, config.context)
567566
await scan_k8s_images(config.kubeconfig)
568567

569568
except CriticalException as e:

0 commit comments

Comments
 (0)