Skip to content
Snippets Groups Projects
Unverified Commit 1472528f authored by David Louks's avatar David Louks Committed by GitHub
Browse files

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
parent 9416c9aa
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
- name: Set fact calico_datastore to etcd if needed - name: Set fact calico_datastore to etcd if needed
set_fact: set_fact:
calico_datastore: etcd 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 when: calico_cni_config_slurp.content is defined
- name: Calico | Get kubelet hostname - name: Calico | Get kubelet hostname
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment