Skip to content

Commit

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

Co-authored-by: Nicolas Goudry <nicolas-goudry@users.noreply.github.com>
  • Loading branch information
VannTen and nicolas-goudry authored Dec 18, 2023
1 parent 7dcbe41 commit 336b323
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:
Expand Down

0 comments on commit 336b323

Please sign in to comment.