From 336b323954d5a49a25c8a75e43760b92035ee4d1 Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Mon, 18 Dec 2023 12:03:49 +0100 Subject: [PATCH] fix(multus): loop_control template error when item is None (#10347) (#10726) Co-authored-by: Nicolas Goudry --- roles/kubernetes-apps/network_plugin/multus/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/network_plugin/multus/tasks/main.yml b/roles/kubernetes-apps/network_plugin/multus/tasks/main.yml index bfaa9b3a2..758eb3f55 100644 --- a/roles/kubernetes-apps/network_plugin/multus/tasks/main.yml +++ b/roles/kubernetes-apps/network_plugin/multus/tasks/main.yml @@ -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: