From c01d91620a2a89b9432a0277c7e0b094fbfdbb77 Mon Sep 17 00:00:00 2001 From: Charles Boyer Date: Thu, 6 May 2021 14:45:41 -0500 Subject: log_services: Fix BMC Journal Entries collection odata.id This commit removes odata.id assertions so the odata.id becomes Journal/Entries instead of BmcLog/Entries. Tested: - Redfish Service Validator passes - The response from `curl -k -H "X-Auth-Token: $token" https://${bmc}/redfish/v1/Managers/bmc/LogServices/Journal/Entries` contained the correct odata.id, `{ "@odata.id": "/redfish/v1/Managers/bmc/LogServices/Journal/Entries", "@odata.type": "#LogEntryCollection.LogEntryCollection", "Description": "Collection of BMC Journal Entries", ...` Signed-off-by: Mohaimen Alsamarai Signed-off-by: Charles Boyer Change-Id: Ie9cfa52b141d9f5d0fc12945fa3936bad871a413 --- redfish-core/lib/log_services.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp index acf2794e8c..efed76463b 100644 --- a/redfish-core/lib/log_services.hpp +++ b/redfish-core/lib/log_services.hpp @@ -2058,13 +2058,9 @@ class BMCJournalLogEntryCollection : public Node "#LogEntryCollection.LogEntryCollection"; asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1/Managers/bmc/LogServices/Journal/Entries"; - asyncResp->res.jsonValue["@odata.id"] = - "/redfish/v1/Managers/bmc/LogServices/Journal/Entries"; asyncResp->res.jsonValue["Name"] = "Open BMC Journal Entries"; asyncResp->res.jsonValue["Description"] = "Collection of BMC Journal Entries"; - asyncResp->res.jsonValue["@odata.id"] = - "/redfish/v1/Managers/bmc/LogServices/BmcLog/Entries"; nlohmann::json& logEntryArray = asyncResp->res.jsonValue["Members"]; logEntryArray = nlohmann::json::array(); -- cgit v1.2.3