From b8c6f21cc6fd76aed41ff68e14539135a6d7b75e Mon Sep 17 00:00:00 2001 From: scott Date: Thu, 16 Apr 2026 14:30:34 -0400 Subject: [PATCH] Prefer FQDN over HostName for IOM hostname display Some IOMs (IOM1) return a UUID in the HostName field of EthernetInterfaces/1. The FQDN field is more reliably populated with the actual hostname. Co-Authored-By: Claude Sonnet 4.6 --- modules/workflow_check.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/workflow_check.py b/modules/workflow_check.py index 2db008a..7c3083e 100644 --- a/modules/workflow_check.py +++ b/modules/workflow_check.py @@ -54,7 +54,8 @@ def _parse_network_data(data: dict) -> tuple: ip = gateway = netmask = "--" mac = _sanitize(data.get("MACAddress", "--")) - hostname = _sanitize(data.get("HostName", "--")) + # Prefer FQDN over HostName — some IOMs return a UUID in HostName + hostname = _sanitize(data.get("FQDN") or data.get("HostName") or "--") link_status = _sanitize(data.get("LinkStatus", "--")) return dhcp_enabled, ip, gateway, netmask, mac, hostname, link_status