2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-02-14 19:59:00 +00:00

Be less picky about megarac url

megarac implementations consistently indicate an .xml file, but wildly vary on what it may be.

Broaden recognition.
This commit is contained in:
Jarrod Johnson
2026-02-05 07:57:25 -05:00
parent 86783a2f12
commit e1d4b72f32

View File

@@ -441,7 +441,7 @@ def _find_service(service, target):
continue
else:
for targurl in peerdata[nid]['urls']:
if '/eth' in targurl and targurl.endswith('.xml'):
if targurl and targurl.endswith('.xml'):
pooltargs.append(('/redfish/v1/', peerdata[nid], 'megarac-bmc'))
# For now, don't interrogate generic redfish bmcs
# This is due to a need to deduplicate from some supported SLP