diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2020-04-15 00:02:42 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-04-16 19:52:26 +0300 |
commit | 73ec8304734d10b81781fb3aa6611873cdb5bcb1 (patch) | |
tree | 6903759d8db068fcae8f69a02c196bfc2fa109e5 /redfish-core | |
parent | e5aaf047b6b41b0837ef0846cf5356c9a6bcb030 (diff) | |
download | bmcweb-73ec8304734d10b81781fb3aa6611873cdb5bcb1.tar.xz |
Change EventLog Id to match odata.id
Could not find a hard rule to require the Id to match the last segment
of the URL/@odata.id but all Redfish mockups match this way, other bmcweb
resources do as well, and redfishtool is easier to use if this is true.
Before:
$ python redfishtool.py -r xxxxxx -u xxxx -p xxxxxxx -S Always \
Systems Logs -i EventLog
5 Transport:getPathBy2:Match: failed match: matchProp=Id, matchValue=EventLog, readValue=Event Log
Tested:
Validator passed.
curl -k https://${bmc}/redfish/v1/Systems/system/LogServices/EventLog
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog",
"@odata.type": "#LogService.v1_1_0.LogService",
"Actions": {
"#LogService.ClearLog": {
"target": "/redfish/v1/Systems/system/LogServices/EventLog/Actions/LogService.ClearLog"
}
},
"Description": "System Event Log Service",
"Entries": {
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries"
},
"Id": "EventLog",
"Name": "Event Log Service",
"OverWritePolicy": "WrapsWhenFull"
Change-Id: Ia324bebfcae65a195adbb3a4126100d82efde383
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/lib/log_services.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp index b22382b30d..4d4a360e32 100644 --- a/redfish-core/lib/log_services.hpp +++ b/redfish-core/lib/log_services.hpp @@ -570,7 +570,7 @@ class EventLogService : public Node "#LogService.v1_1_0.LogService"; asyncResp->res.jsonValue["Name"] = "Event Log Service"; asyncResp->res.jsonValue["Description"] = "System Event Log Service"; - asyncResp->res.jsonValue["Id"] = "Event Log"; + asyncResp->res.jsonValue["Id"] = "EventLog"; asyncResp->res.jsonValue["OverWritePolicy"] = "WrapsWhenFull"; asyncResp->res.jsonValue["Entries"] = { {"@odata.id", |