From 601b76a0f7a0cd4c3ff04a9eb055e02da4ed0828 Mon Sep 17 00:00:00 2001 From: "Homayoon (Hue) Alimohammadi" Date: Thu, 23 Jan 2025 17:27:54 +0400 Subject: [PATCH] scripts: Fix kill-host-pods --- scripts/kill-host-pods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kill-host-pods.py b/scripts/kill-host-pods.py index 0416a5fc3d..f1df784a8b 100755 --- a/scripts/kill-host-pods.py +++ b/scripts/kill-host-pods.py @@ -41,7 +41,7 @@ def post_filter_has_snap_data_mounts(pod) -> bool: hostpath_volume = volume.get("hostPath", {}) host_path = hostpath_volume.get("path", "") if not host_path: - return False + continue if host_path.startswith(SNAP_DATA_CURRENT): return True