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/sensors.hpp b/redfish-core/lib/sensors.hpp
index 9068888..8be861b 100644
--- a/redfish-core/lib/sensors.hpp
+++ b/redfish-core/lib/sensors.hpp
@@ -2742,9 +2742,9 @@
messages::internalError(sensorAsyncResp->asyncResp->res);
return;
}
- setDbusProperty(sensorAsyncResp->asyncResp, item.second,
- item.first, "xyz.openbmc_project.Sensor.Value",
- "Value", propertyValueNameStr,
+ setDbusProperty(sensorAsyncResp->asyncResp,
+ propertyValueNameStr, item.second, item.first,
+ "xyz.openbmc_project.Sensor.Value", "Value",
iterator->second.first);
}
};