Skip to content
Snippets Groups Projects
Unverified Commit db0138b2 authored by ERIK's avatar ERIK Committed by GitHub
Browse files

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


Signed-off-by: default avatarbo.jiang <bo.jiang@daocloud.io>
parent b0be5f2d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment