Skip to content
Snippets Groups Projects
Commit fefa1670 authored by Miao Zhou's avatar Miao Zhou Committed by k8s-ci-robot
Browse files

fix calico_version wrong get (#3694)

the ':' makes wrong return of calico_version after the calicoctl downloaded && before the cluster is up
parent 589d22da
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
- facts - facts
- name: "Get current version of calico cluster version" - 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 register: calico_version_on_server
run_once: yes run_once: yes
delegate_to: "{{ groups['kube-master'][0] }}" delegate_to: "{{ groups['kube-master'][0] }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment