Skip to content
Snippets Groups Projects
Unverified Commit 2a7c9d27 authored by Nicolas Goudry's avatar Nicolas Goudry Committed by GitHub
Browse files

fix(multus): loop_control template error when item is None (#10347)

parent 9c610ee1
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment