fix calico_version wrong get (#3694)

the ':' makes wrong return of calico_version after the calicoctl downloaded && before the cluster is up
This commit is contained in:
Miao Zhou 2018-11-12 23:35:21 +08:00 committed by k8s-ci-robot
parent 589d22da0b
commit fefa1670a6

View file

@ -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] }}"