From: Andreas Seelinger Date: Tue, 25 Mar 2025 17:10:49 +0000 (+0100) Subject: [OOM Readiness] Fix endloss loop for statefulset pod checks X-Git-Tag: 6.1.2^0 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F94%2F140594%2F1;p=oom%2Freadiness.git [OOM Readiness] Fix endloss loop for statefulset pod checks Issue-ID: OOM-3338 Change-Id: Ief33d420633c79ae543bced13d67ccec4c5a0ed1 Signed-off-by: Andreas Seelinger --- diff --git a/ready.py b/ready.py index eda4c93..4bd62a9 100755 --- a/ready.py +++ b/ready.py @@ -299,7 +299,7 @@ def fetch_pod_and_check_if_ready(pod_name): watch=False) for pod in response.items: if (pod.metadata.name.startswith(pod_name)): - is_pod_ready(pod) + ready = is_pod_ready(pod) except ApiException as exc: log.error("Exception when calling list_namespaced_pod: %s\n", exc) return ready