summaryrefslogtreecommitdiff
path: root/http/routing.hpp
diff options
context:
space:
mode:
authorBrandon Kim <brandonkim@google.com>2022-03-14 21:42:34 +0300
committerEd Tanous <ed@tanous.net>2022-03-22 01:57:11 +0300
commita2dd60a69046cdda90077463f614140aeb91edc4 (patch)
treecd2fd3166038a62a9d97833f11b1139bedbd8585 /http/routing.hpp
parent91ac2e57c416bbdf95fa9242eaf8e5f9e118d5ba (diff)
downloadbmcweb-a2dd60a69046cdda90077463f614140aeb91edc4.tar.xz
log_services: Initialize Members@odata.count as 0
Currently when Members array is initialized to an empty array, the Members@odata.count is not present. Initialize it as 0. The bug seems to have been introduced by: https://gerrit.openbmc-project.xyz/50224 Tested: On QEMU - Before change: { "@odata.id": "/redfish/v1/Systems/system/LogServices/Crashdump/Entries", "@odata.type": "#LogEntryCollection.LogEntryCollection", "Description": "Collection of Crashdump Entries", "Members": [], "Name": "Open BMC Crashdump Entries" } After change: { "@odata.id": "/redfish/v1/Systems/system/LogServices/Crashdump/Entries", "@odata.type": "#LogEntryCollection.LogEntryCollection", "Description": "Collection of Crashdump Entries", "Members": [], "Members@odata.count": 0, "Name": "Open BMC Crashdump Entries" } { "@odata.id": "/redfish/v1/Systems/system/LogServices/Crashdump/Entries", "@odata.type": "#LogEntryCollection.LogEntryCollection", "Description": "Collection of Crashdump Entries", "Members": [ { "@odata.id": "/redfish/v1/Systems/system/LogServices/Crashdump/Entries/OnDemand", "@odata.type": "#LogEntry.v1_7_0.LogEntry", "AdditionalDataURI": "/redfish/v1/Systems/system/LogServices/Crashdump/Entries/OnDemand/crashdump_ondemand_1970-01-01T00:05:23Z.json", "Created": "1970-01-01T00:05:23Z", "DiagnosticDataType": "OEM", "EntryType": "Oem", "Id": "OnDemand", "Name": "CPU Crashdump", "OEMDiagnosticDataType": "PECICrashdump" } ], "Members@odata.count": 1, "Name": "Open BMC Crashdump Entries" } Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I5d17a8a62db23ad0da1c97113a4c6521bdec02cb
Diffstat (limited to 'http/routing.hpp')
0 files changed, 0 insertions, 0 deletions