bmcweb: Fix empty response when do the clearLog
Upstream:
https://gerrit.openbmc.org/c/openbmc/bmcweb/+/66274
It won't show anything when do the POST
/redfish/v1/Systems/<str>/LogServices/PostCodes/Actions/LogService.ClearLog
Give a response which same as
/redfish/v1/Systems/<str>/LogServices/EventLog/Actions/LogService.ClearLog
Tested:
curl -k -X POST http://${bmc}/redfish/v1/Systems/system/LogServices/PostCodes/Actions/LogService.ClearLog
{
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_1_1.Message",
"Message": "The request completed successfully.",
"MessageArgs": [],
"MessageId": "Base.1.13.0.Success",
"MessageSeverity": "OK",
"Resolution": "None"
}
]
}
Change-Id: I4bc928a6a9b8a2c2577af6d544e108d27940971e
Signed-off-by: Tony Lee <tony.lee@quanta.corp-partner.google.com>
2 files changed