Revert "Prefer FQDN over HostName for IOM hostname display"

This reverts commit b8c6f21cc6.
This commit is contained in:
2026-04-16 14:31:30 -04:00
parent b8c6f21cc6
commit 38eef32d48

View File

@@ -54,8 +54,7 @@ def _parse_network_data(data: dict) -> tuple:
ip = gateway = netmask = "--"
mac = _sanitize(data.get("MACAddress", "--"))
# Prefer FQDN over HostName — some IOMs return a UUID in HostName
hostname = _sanitize(data.get("FQDN") or data.get("HostName") or "--")
hostname = _sanitize(data.get("HostName", "--"))
link_status = _sanitize(data.get("LinkStatus", "--"))
return dhcp_enabled, ip, gateway, netmask, mac, hostname, link_status