summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei YU <yulei.sh@bytedance.com>2022-01-20 09:33:52 +0300
committerLei YU <yulei.sh@bytedance.com>2022-01-20 09:38:03 +0300
commit727dc83fbc5ee1e5397dfc427871c203dc547eb0 (patch)
tree36b9217db305450062eadf3fa4b93be53e466bbe
parent9ea15c35e10f4d9d3f61538b444e75efa15e426a (diff)
downloadbmcweb-727dc83fbc5ee1e5397dfc427871c203dc547eb0.tar.xz
managers: Fix incorrect property name for "Class"
The commit 711ac7a9 introduces a bug in redfish-core/lib/managers.hpp that it uses the incorrect property name when getting "Class"'s value. This results in HW CI error that is related to /redfish/v1/Managers/bmc, and manually access this URI results in 500 InternalError. Tested: Verify the /redfish/v1/Managers/bmc URI is OK and the HW CI passes. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: Ieb8f98b6cfee6aa22a0320d2410a9b96c536c080
-rw-r--r--redfish-core/lib/managers.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/managers.hpp b/redfish-core/lib/managers.hpp
index 201f2f41a3..d4505444b2 100644
--- a/redfish-core/lib/managers.hpp
+++ b/redfish-core/lib/managers.hpp
@@ -363,7 +363,7 @@ inline void
dbus::utility::DbusVariantType>&
propPair : intfPair.second)
{
- if (intfPair.first == "Class")
+ if (propPair.first == "Class")
{
classPtr =
std::get_if<std::string>(&propPair.second);