Fix E306 in roles/network_plugin (#6516)

Signed-off-by: Miouge1 <maxime@root314.com>
This commit is contained in:
Maxime Guyot
2020-09-03 08:55:40 +02:00
committed by GitHub
parent 2faf53b039
commit 6245587dc8
3 changed files with 104 additions and 88 deletions

View File

@@ -37,13 +37,16 @@
when:
- "calico_vxlan_mode in ['Always', 'CrossSubnet']"
- 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
async: 10
poll: 3
run_once: yes
changed_when: false
failed_when: false
- name: "Determine if calico upgrade is needed"
block: