mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-29 13:00:03 +00:00
Tolerate redfish variations and fix loop
Some redfish omit the trailing /, and the correct move on non-redfish is to continue to next candidate, not break.
This commit is contained in:
parent
9c40569429
commit
04b462712d
@ -358,8 +358,8 @@ def _find_service(service, target):
|
||||
querypool = gp.GreenPool()
|
||||
pooltargs = []
|
||||
for nid in peerdata:
|
||||
if '/redfish/v1/' not in peerdata[nid].get('urls', ()):
|
||||
break
|
||||
if '/redfish/v1/' not in peerdata[nid].get('urls', ()) and '/redfish/v1' not in peerdata[nid].get('urls', ()):
|
||||
continue
|
||||
if '/DeviceDescription.json' in peerdata[nid]['urls']:
|
||||
pooltargs.append(('/DeviceDescription.json', peerdata[nid]))
|
||||
# For now, don't interrogate generic redfish bmcs
|
||||
|
Loading…
Reference in New Issue
Block a user