Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
Signed-off-by: Oded Viner <[email protected]>
  • Loading branch information
OdedViner committed Feb 24, 2025
1 parent 7d160fd commit 630bacc
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,9 @@ def test_monitoring_ipv6(threading_lock):
)
prometheus_pod_obj = None
for pod_obj in pod_obj_list:
try:
if "prometheus-k8s" in pod_obj.name:
prometheus_pod_obj = pod_obj
break
except Exception as e:
logger.info(e)
if "prometheus-k8s" in pod_obj.name:
prometheus_pod_obj = pod_obj
break
assert (
prometheus_pod_obj is not None
), "Prometheus pod not found in the monitoring namespace"
Expand Down

0 comments on commit 630bacc

Please sign in to comment.