From c54552bbb4882a65268b69296955df54d9ca2051 Mon Sep 17 00:00:00 2001 From: "Homayoon (Hue) Alimohammadi" Date: Tue, 21 Jan 2025 13:14:44 +0400 Subject: [PATCH] scripts: Fix kill-host-pods script --- 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