Fix E306 in roles/kubernetes (#6500)

This commit is contained in:
Maxime Guyot
2020-08-05 16:56:28 +02:00
committed by GitHub
parent bfe143808f
commit fc23f37af7
6 changed files with 31 additions and 15 deletions

View File

@@ -158,8 +158,10 @@
when:
- kube_network_plugin == 'calico'
- name: "Get current version of calico cluster version" # noqa 306
shell: "{{ bin_dir }}/calicoctl.sh version | grep 'Cluster Version:' | awk '{ print $3}'"
- name: "Get current version of calico cluster version"
shell: "set -o pipefail && {{ bin_dir }}/calicoctl.sh version | grep 'Cluster Version:' | awk '{ print $3}'"
args:
executable: /bin/bash
register: calico_version_on_server
run_once: yes
changed_when: false