fix: incorrect member matching when removing etcd nodes (#11488)

Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
pull/11499/head
ERIK 2024-08-31 15:20:44 +08:00 committed by GitHub
parent b0be5f2dad
commit db0138b2f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
- inventory_hostname in groups['etcd'] - inventory_hostname in groups['etcd']
- name: Lookup etcd member id - name: Lookup etcd member id
shell: "set -o pipefail && {{ bin_dir }}/etcdctl member list | grep {{ node_ip }} | cut -d, -f1" shell: "set -o pipefail && {{ bin_dir }}/etcdctl member list | grep -w {{ node_ip }} | cut -d, -f1"
args: args:
executable: /bin/bash executable: /bin/bash
register: etcd_member_id register: etcd_member_id