mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-11 01:57:37 -03:30
fix(multus): loop_control template error when item is None (#10347)
This commit is contained in:
parent
9c610ee11d
commit
2a7c9d27b2
@ -11,7 +11,7 @@
|
||||
run_once: true
|
||||
with_items: "{{ multus_manifest_1.results + (multus_nodes_list | map('extract', hostvars, 'multus_manifest_2') | list | json_query('[].results')) }}"
|
||||
loop_control:
|
||||
label: "{{ item.item.name }}"
|
||||
label: "{{ item.item.name if item != None else 'skipped' }}"
|
||||
vars:
|
||||
multus_nodes_list: "{{ groups['k8s_cluster'] if ansible_play_batch | length == ansible_play_hosts_all | length else ansible_play_batch }}"
|
||||
when:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user