fix: incorrect member matching when removing etcd nodes (#11488)
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>pull/11499/head
parent
b0be5f2dad
commit
db0138b2f9
|
@ -26,7 +26,7 @@
|
|||
- inventory_hostname in groups['etcd']
|
||||
|
||||
- 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:
|
||||
executable: /bin/bash
|
||||
register: etcd_member_id
|
||||
|
|
Loading…
Reference in New Issue