diff --git a/redfish_utilities/inventory.py b/redfish_utilities/inventory.py index 39b7a22..9d643e1 100644 --- a/redfish_utilities/inventory.py +++ b/redfish_utilities/inventory.py @@ -123,6 +123,10 @@ def catalog_collection(context, resource, name, inventory, chassis_id): """ if name in resource: + # some Chassis (such as a secondary Enclosure on HPE Apollo) may have empty PCIe devices collections + if not resource[name]: + return + collection = context.get(resource[name]["@odata.id"]) try: verify_response(collection)