Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Fix bug for rolling update pd #886

Merged
merged 1 commit into from
Aug 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion common_tasks/get_pd_name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
register: pd_info

- set_fact:
pd_name: "{{ pd_info.json.members | json_query(query) }}"
pd_name_list: "{{ pd_info.json.members | json_query(query) }}"
vars:
query: '[?client_urls==[`http://{{ pd_addr }}`]].name'

- set_fact:
pd_name: "{{ pd_name_list[0] }}"