From 4e4fedfb3f817056cc8d1abbf74853f40e088d03 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Tue, 5 Mar 2024 10:21:03 +0100 Subject: [PATCH] Fix recipe --- artifacts/k8s_galaxy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artifacts/k8s_galaxy.yml b/artifacts/k8s_galaxy.yml index 4baff05..87e2b55 100644 --- a/artifacts/k8s_galaxy.yml +++ b/artifacts/k8s_galaxy.yml @@ -98,11 +98,11 @@ - name: Delete CreateContainerConfigError pods command: kubectl delete pods -n {{ NAMESPACE }} --field-selector="status.phase=Pending" register: error_pods - changed_when: error_pods.stdout_lines | length > 1 + changed_when: error_pods.stdout_lines | length > 0 retries: 5 delay: 120 - until: error_pods.stdout_lines | length > 1 + until: error_pods.stdout_lines | length == 0 - fail: msg: "Error waiting for pods to be ready" - when: error_pods.stdout_lines | length > 1 + when: error_pods.stdout_lines | length > 0