From 7b7e97666da881eb811fe0ec28c68355c7d1be76 Mon Sep 17 00:00:00 2001 From: Klaus Smolin Date: Wed, 11 Dec 2024 16:33:36 +0100 Subject: [PATCH] fix: Wrong check Signed-off-by: Klaus Smolin --- roles/wait_for_cluster_operators/tasks/check_co.yaml | 2 +- roles/wait_for_cluster_operators/tasks/main.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/wait_for_cluster_operators/tasks/check_co.yaml b/roles/wait_for_cluster_operators/tasks/check_co.yaml index 7085889f..17ae2540 100644 --- a/roles/wait_for_cluster_operators/tasks/check_co.yaml +++ b/roles/wait_for_cluster_operators/tasks/check_co.yaml @@ -22,7 +22,7 @@ oc get co 2> /dev/null | awk '{print $4}' register: co_check # Check for "True" and "False", in case output was empty for any reason - until: (" True " not in co_check.stdout) and (" False " in co_check.stdout) + until: ("True" not in co_check.stdout) and ("False" in co_check.stdout) retries: 10 delay: 30 ignore_errors: true diff --git a/roles/wait_for_cluster_operators/tasks/main.yaml b/roles/wait_for_cluster_operators/tasks/main.yaml index c125ac16..1fff2230 100644 --- a/roles/wait_for_cluster_operators/tasks/main.yaml +++ b/roles/wait_for_cluster_operators/tasks/main.yaml @@ -23,7 +23,7 @@ oc get co 2> /dev/null | awk '{print $3}' register: co_check # Check for "True" and "False", in case output was empty for any reason - until: (" True " in co_check.stdout) and (" False " not in co_check.stdout) + until: ("True" in co_check.stdout) and ("False" not in co_check.stdout) retries: 20 delay: 15 ignore_errors: true