Skip to content

Commit

Permalink
Fix default value for standalone tests (#6043)
Browse files Browse the repository at this point in the history
  • Loading branch information
floryut authored Apr 29, 2020
1 parent a3d3f27 commit a468954
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testcases/040_check-network-adv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
- name: Test tunl0 routes
shell: "! /sbin/ip ro | grep '/26 via' | grep -v tunl0"
when:
- (ipip|default(false) or cloud_provider is defined)
- kube_network_plugin == 'calico'
- (ipip|default(true) or cloud_provider is defined)
- kube_network_plugin|default('calico') == 'calico'

- hosts: k8s-cluster
vars:
Expand All @@ -18,7 +18,7 @@
shell: "ethtool --offload flannel.1 rx off tx off"
ignore_errors: true
when:
- kube_network_plugin == 'flannel'
- kube_network_plugin|default('calico') == 'flannel'

- name: Force binaries directory for Container Linux by CoreOS and Flatcar
set_fact:
Expand Down

0 comments on commit a468954

Please sign in to comment.