From 151e5fed3a3d687dab26d638fd0e68cd442b7dc2 Mon Sep 17 00:00:00 2001 From: Joe Talerico Date: Mon, 10 Oct 2016 10:58:23 -0400 Subject: [PATCH] Fix logic to check for partitions Change-Id: I93da15ee64d3309acc4f6855eb2d3cc252ed4cd3 --- ansible/check/roles/controller/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/check/roles/controller/tasks/main.yml b/ansible/check/roles/controller/tasks/main.yml index 44aa69f50..546a1d3cb 100644 --- a/ansible/check/roles/controller/tasks/main.yml +++ b/ansible/check/roles/controller/tasks/main.yml @@ -59,7 +59,7 @@ failed_when: bz1293712.rc == 0 - name : Check rabbitmq for partitions - shell: rabbitmqctl cluster_status | grep -v alarm | grep partitions -A 1 | grep -q controller + shell: rabbitmqctl cluster_status | grep partitions -A 1 | grep -v alarm | grep -q controller register: rabbit_partitioned changed_when: no failed_when: rabbit_partitioned.rc == 0