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()