Implement PowerState in the chassis schema
Because the bmc is always "On" simply hardcode the value to ON. This is
done because some compliance profiles require it.
Change-Id: I8833355ca2a12d3606d10e7f653fca59ae8cf56a
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index ae52d28..fa10d5c 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -126,6 +126,7 @@
Node::json["@odata.context"] = "/redfish/v1/$metadata#Chassis.Chassis";
Node::json["Name"] = "Chassis Collection";
Node::json["ChassisType"] = "RackMount";
+ Node::json["PowerState"] = "On";
entityPrivileges = {
{boost::beast::http::verb::get, {{"Login"}}},