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
  • Loading branch information
nicolas-goudry authored Aug 10, 2023
1 parent 9c610ee commit 2a7c9d2
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 2a7c9d2

Please sign in to comment.