summaryrefslogtreecommitdiff
path: root/redfish-core/lib
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib')
-rw-r--r--redfish-core/lib/power.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/redfish-core/lib/power.hpp b/redfish-core/lib/power.hpp
index 5a62400fd4..37a22da2a6 100644
--- a/redfish-core/lib/power.hpp
+++ b/redfish-core/lib/power.hpp
@@ -304,6 +304,11 @@ class Power : public Node
nlohmann::json& value =
sensorJson["PowerLimit"]["LimitInWatts"];
+ // LimitException is Mandatory attribute as per OCP Baseline
+ // Profile – v1.0.0, so currently making it "NoAction"
+ // as default value to make it OCP Compliant.
+ sensorJson["PowerLimit"]["LimitException"] = "NoAction";
+
if (enabled)
{
// Redfish specification indicates PowerLimit should be