From 3dc6af56d5bc63e6157db005f18eff8cd5ee2736 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 9 Mar 2026 07:30:22 +1300 Subject: [PATCH] Include VM system hostname when filtering duplicate containers --- app/templates/index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/templates/index.html b/app/templates/index.html index e729df8..7ec0a70 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -75,7 +75,13 @@ {% set containers_raw = d.get('container', []) if d.get('container') else [] %} {% set child_vms = children_map.get(server.hostname, []) %} - {% set child_names = child_vms|map(attribute='hostname')|list %} + {% set child_names = [] %} + {% for vm in child_vms %} + {% set _ = child_names.append(vm.hostname) %} + {% if vm.details and vm.details.get('system', {}).get('hostname') %} + {% set _ = child_names.append(vm.details['system']['hostname']) %} + {% endif %} + {% endfor %} {% set containers = [] %} {% for ct in containers_raw %} {% set ct_name = ct.get('name', ct.get('id', '')) %}