Pass redfishPropertyName earlier argument
It was pointed out that the setDbusProperty method should have an end
that approximately matches dbus-send and busctl set-property in its
arguments, to aid with debug. This seems reasonable.
Tested: Redfish service validator passes.
Change-Id: Ic20295d93c71c957e3e76704e1eda9da187861b1
Signed-off-by: Ginu George <ginugeorge@ami.com>
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/redfish-core/lib/power.hpp b/redfish-core/lib/power.hpp
index 18d1380..cd7fa0f 100644
--- a/redfish-core/lib/power.hpp
+++ b/redfish-core/lib/power.hpp
@@ -54,11 +54,12 @@
return;
}
- setDbusProperty(sensorsAsyncResp->asyncResp, "xyz.openbmc_project.Settings",
+ setDbusProperty(sensorsAsyncResp->asyncResp, "PowerControl",
+ "xyz.openbmc_project.Settings",
sdbusplus::message::object_path(
"/xyz/openbmc_project/control/host0/power_cap"),
"xyz.openbmc_project.Control.Power.Cap", "PowerCap",
- "PowerControl", valueToSet);
+ valueToSet);
}
inline void afterGetChassisPath(