From cacbd6d8dbb95262f129b386585e274f2625fc95 Mon Sep 17 00:00:00 2001 From: liubo0127 Date: Wed, 7 Aug 2019 17:54:33 +0800 Subject: [PATCH] Fix bug for rolling update pd --- common_tasks/get_pd_name.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common_tasks/get_pd_name.yml b/common_tasks/get_pd_name.yml index 0f03aa3ba..404139f8f 100644 --- a/common_tasks/get_pd_name.yml +++ b/common_tasks/get_pd_name.yml @@ -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] }}"