Skip to content

Commit

Permalink
fix(multus): loop_control template error when item is None (kubernete…
Browse files Browse the repository at this point in the history
…s-sigs#10347) (kubernetes-sigs#10726)

Co-authored-by: Nicolas Goudry <nicolas-goudry@users.noreply.github.com>
(cherry picked from commit 336b323)
  • Loading branch information
VannTen authored and notCalle committed Dec 27, 2023
1 parent 0e2967d commit 1616fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubernetes-apps/network_plugin/multus/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: not item is skipped

0 comments on commit 1616fc3

Please sign in to comment.