diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2020-10-14 23:51:31 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-10-16 16:09:57 +0300 |
commit | 05030b8edfeeb351c902bc5d36c5041796b8df6d (patch) | |
tree | 28f44e318e8c3b9457db30e1791e86a1ec05db31 /redfish-core/lib/processor.hpp | |
parent | ac6a4445047df7f9fa198cca2ae1eeffd943a627 (diff) | |
download | bmcweb-05030b8edfeeb351c902bc5d36c5041796b8df6d.tar.xz |
Fix up Function to Populate collection Members
Added Doxygen comments, renamed the funciton, renamed several
variables, and made more generic.
Tested: Top commit passes validator and resources look good.
Change-Id: I9a13176b7f4c8611ae38c6563b0e119e0f66edf2
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/processor.hpp')
-rw-r--r-- | redfish-core/lib/processor.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/processor.hpp b/redfish-core/lib/processor.hpp index 5c986845f4..4c9b1dc30e 100644 --- a/redfish-core/lib/processor.hpp +++ b/redfish-core/lib/processor.hpp @@ -469,8 +469,8 @@ class ProcessorCollection : public Node res.jsonValue["@odata.id"] = "/redfish/v1/Systems/system/Processors/"; auto asyncResp = std::make_shared<AsyncResp>(res); - collection_util::getResourceList( - asyncResp, "Processors", + collection_util::getCollectionMembers( + asyncResp, "/redfish/v1/Systems/system/Processors", {"xyz.openbmc_project.Inventory.Item.Cpu", "xyz.openbmc_project.Inventory.Item.Accelerator"}); } |