From d8fc5cd8b81a912199252b1af1cc5010b6a845f4 Mon Sep 17 00:00:00 2001 From: Marco Lucarelli Date: Fri, 30 Jan 2026 15:15:01 +0100 Subject: [PATCH] mixe mixed up dataclass --- python/redfish-api/redfish_exporter_v9000.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/redfish-api/redfish_exporter_v9000.py b/python/redfish-api/redfish_exporter_v9000.py index ea5384d..6b0d8eb 100644 --- a/python/redfish-api/redfish_exporter_v9000.py +++ b/python/redfish-api/redfish_exporter_v9000.py @@ -392,7 +392,8 @@ async def get_power_data(session, host: HostConfig): # Start time measurement start = time.monotonic() - # Get Root ressources + + # Get root ressources resources = await discover_redfish_resources(session, host) if not resources or not resources.chassis: logging.error("Could not discover any resources for %s", host.fqdn) @@ -403,7 +404,7 @@ async def get_power_data(session, host: HostConfig): host.mark_success() UP_GAUGE.labels(host=host.fqdn).set(1) - chassis_url = resources.get("Chassis") + chassis_url = f"https://{host.fqdn}{resources.chassis}" chassis_data = await fetch_with_retry(session, host, chassis_url) if not chassis_data: host.mark_failure()