2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-30 21:07:48 +00:00

Return empty hifurl list when non existent

For systems without a host interface,
properly show an empty list.
This commit is contained in:
Jarrod Johnson 2024-12-03 14:55:50 -05:00
parent 8bdabdc962
commit 64895c9f95

View File

@ -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: