From fefa1670a6899034feffde7cd7db7d5b06e6ec59 Mon Sep 17 00:00:00 2001 From: Miao Zhou Date: Mon, 12 Nov 2018 23:35:21 +0800 Subject: [PATCH] fix calico_version wrong get (#3694) the ':' makes wrong return of calico_version after the calicoctl downloaded && before the cluster is up --- roles/kubernetes/preinstall/tasks/0020-verify-settings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml index 15c188d1c..881f850df 100644 --- a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml +++ b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml @@ -137,7 +137,7 @@ - facts - name: "Get current version of calico cluster version" - shell: "{{ bin_dir }}/calicoctl version | grep 'Cluster Version' | awk '{ print $3}'" + shell: "{{ bin_dir }}/calicoctl version | grep 'Cluster Version:' | awk '{ print $3}'" register: calico_version_on_server run_once: yes delegate_to: "{{ groups['kube-master'][0] }}"