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

Commit

Permalink
Fix bug for rolling update pd (#886) (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
liubo0127 authored Aug 7, 2019
1 parent 0b66342 commit 7aebb59
Showing 1 changed file with 4 additions and 1 deletion.
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] }}"

0 comments on commit 7aebb59

Please sign in to comment.