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