Browse Source

check if 'plugins' key exists in calico_cni_config object (#7717)

* check if 'plugins' key exists in calico_cni_config object

* fix whitespace linting error

* fixed when list indentation
pull/8029/head
David Louks 3 years ago
committed by GitHub
parent
commit
1472528f6d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. 4
      roles/network_plugin/calico/tasks/pre.yml

4
roles/network_plugin/calico/tasks/pre.yml

@ -12,7 +12,9 @@
- name: Set fact calico_datastore to etcd if needed
set_fact:
calico_datastore: etcd
when: "'etcd_endpoints' in calico_cni_config.plugins.0"
when:
- "'plugins' in calico_cni_config"
- "'etcd_endpoints' in calico_cni_config.plugins.0"
when: calico_cni_config_slurp.content is defined
- name: Calico | Get kubelet hostname

Loading…
Cancel
Save