From 2fc5bb3e99e074ea5d07c9fc76533d7613e84ded Mon Sep 17 00:00:00 2001 From: Ben Banfield-Zanin Date: Wed, 19 Feb 2025 10:48:12 +0000 Subject: [PATCH] Fix scripts linting --- tests/manifests/test_pod_containers_ports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/manifests/test_pod_containers_ports.py b/tests/manifests/test_pod_containers_ports.py index 27e3a3e6..2033cc8f 100644 --- a/tests/manifests/test_pod_containers_ports.py +++ b/tests/manifests/test_pod_containers_ports.py @@ -15,5 +15,5 @@ async def test_unique_ports_in_containers(templates): id = f"{template['kind']}/{template['metadata']['name']}" ports = [] for container in template["spec"]["template"]["spec"]["containers"]: - ports += [port['containerPort'] for port in container.get('ports', [])] + ports += [port["containerPort"] for port in container.get("ports", [])] assert len(ports) == len(set(ports)), f"Ports are not unique: {id}, {ports}"