From 64895c9f95039d0426ee8c62cf22dc36b586c93e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 3 Dec 2024 14:55:50 -0500 Subject: [PATCH] Return empty hifurl list when non existent For systems without a host interface, properly show an empty list. --- confluent_server/confluent/discovery/handlers/redfishbmc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/discovery/handlers/redfishbmc.py b/confluent_server/confluent/discovery/handlers/redfishbmc.py index a14530d3..5ecd078d 100644 --- a/confluent_server/confluent/discovery/handlers/redfishbmc.py +++ b/confluent_server/confluent/discovery/handlers/redfishbmc.py @@ -32,7 +32,7 @@ def get_host_interface_urls(wc, mginfo): returls = [] hifurl = mginfo.get('HostInterfaces', {}).get('@odata.id', None) if not hifurl: - return None + return [] hifinfo = wc.grab_json_response(hifurl) hifurls = hifinfo.get('Members', []) for hifurl in hifurls: