diff options
author | Charles Boyer <Charles.Boyer@fii-usa.com> | 2021-05-06 22:45:41 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2021-05-21 18:25:27 +0300 |
commit | c01d91620a2a89b9432a0277c7e0b094fbfdbb77 (patch) | |
tree | dcec51284d7d10679db41bd9be92101e6cee868b | |
parent | cb0d27e012456fc954be1649325402819bacb6a7 (diff) | |
download | bmcweb-c01d91620a2a89b9432a0277c7e0b094fbfdbb77.tar.xz |
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 <mohaimen.alsamrai@fii-na.com>
Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com>
Change-Id: Ie9cfa52b141d9f5d0fc12945fa3936bad871a413
-rw-r--r-- | redfish-core/lib/log_services.hpp | 4 |
1 files changed, 0 insertions, 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(); |