From 75d1be8272609da97237dcd2a901d1938f30014c Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Wed, 7 Aug 2019 18:26:51 +0300 Subject: [PATCH] Fix check for removing etcd member (#5051) Change-Id: Ib27d051ff111f813097a9b33a86465a2a30a6db0 --- roles/remove-node/post-remove/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/remove-node/post-remove/tasks/main.yml b/roles/remove-node/post-remove/tasks/main.yml index eb37e8498..e36c21742 100644 --- a/roles/remove-node/post-remove/tasks/main.yml +++ b/roles/remove-node/post-remove/tasks/main.yml @@ -51,4 +51,4 @@ delegate_to: "{{ groups['etcd']|first }}" when: - inventory_hostname in groups['etcd'] - - not etcd_member_id.stdout + - etcd_member_id.stdout | length > 0