chassis: fix power state regression
Commit 539d8c6 introduced a regression on the reported chassis power
state (caught by romulus qemu CI).
Tested:
- None, simple fix
Change-Id: Iac5b27ae7103fc0717547cb3e6f124a1c75d65a8
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index 676c52a..d6438d0 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -131,7 +131,7 @@
else if (chassisState ==
"xyz.openbmc_project.State.Chassis.PowerState.Off")
{
- asyncResp->res.jsonValue["PowerState"] = resource::PowerState::On;
+ asyncResp->res.jsonValue["PowerState"] = resource::PowerState::Off;
asyncResp->res.jsonValue["Status"]["State"] =
resource::State::StandbyOffline;
}