summaryrefslogtreecommitdiff
path: root/redfish-core/lib/memory.hpp
diff options
context:
space:
mode:
authorJiaqing Zhao <jiaqing.zhao@intel.com>2022-03-18 12:24:32 +0300
committerEd Tanous <ed@tanous.net>2022-03-25 00:22:12 +0300
commit1e04f3b2b55cd441bcabbb1d31b08bb2060034ea (patch)
treed6e6dda02e0ba89eb07747adee605a4620b9982e /redfish-core/lib/memory.hpp
parent724340d72d0376e3b79d395354ac39e2273d5dd5 (diff)
downloadbmcweb-1e04f3b2b55cd441bcabbb1d31b08bb2060034ea.tar.xz
Memory: Fix OperatingMemoryModes and MemoryMedia properties
OperatingMemoryModes and MemoryMedia properties of Memory should be of array type, and removes the extra whitespace in OperatingMemoryModes. Tested: Redfish validator passed. Change-Id: I1b697db93e87dc791ce90a61be41da913fe61a36 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
Diffstat (limited to 'redfish-core/lib/memory.hpp')
-rw-r--r--redfish-core/lib/memory.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/memory.hpp b/redfish-core/lib/memory.hpp
index d3bbc072a7..6d035142da 100644
--- a/redfish-core/lib/memory.hpp
+++ b/redfish-core/lib/memory.hpp
@@ -373,7 +373,7 @@ inline void getPersistentMemoryProperties(
{
if (boost::ends_with(*value, v))
{
- aResp->res.jsonValue["OperatingMemoryModes "] = v;
+ aResp->res.jsonValue["OperatingMemoryModes"].push_back(v);
break;
}
}
@@ -394,7 +394,7 @@ inline void getPersistentMemoryProperties(
{
if (boost::ends_with(*value, v))
{
- aResp->res.jsonValue["MemoryMedia"] = v;
+ aResp->res.jsonValue["MemoryMedia"].push_back(v);
break;
}
}