diff options
Diffstat (limited to 'redfish-core/lib/update_service.hpp')
-rw-r--r-- | redfish-core/lib/update_service.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp index e3f5df7..ec9600e 100644 --- a/redfish-core/lib/update_service.hpp +++ b/redfish-core/lib/update_service.hpp @@ -566,10 +566,14 @@ class SoftwareInventoryCollection : public Node members.size(); } }, + // Note that only firmware levels associated with a device are + // stored under /xyz/openbmc_project/software therefore to ensure + // only real FirmwareInventory items are returned, this full object + // path must be used here as input to mapper "xyz.openbmc_project.ObjectMapper", "/xyz/openbmc_project/object_mapper", - "xyz.openbmc_project.ObjectMapper", "GetSubTree", "/", - static_cast<int32_t>(0), + "xyz.openbmc_project.ObjectMapper", "GetSubTree", + "/xyz/openbmc_project/software", static_cast<int32_t>(0), std::array<const char *, 1>{ "xyz.openbmc_project.Software.Version"}); } |