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:
parent
8bdabdc962
commit
64895c9f95
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user