ExitAirTemp: Fix threshold parsing
Thresholds is a member variable, so it moves the member
variable instead of the input variable. Rename it so the
right thing gets moved.
Tested: ipmitool sensor list
Change-Id: I1b429c1d2218ca80fc8f0e3b35d67cb6f1cd881c
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/ExitAirTempSensor.cpp b/src/ExitAirTempSensor.cpp
index 42ae6db..8779be0 100644
--- a/src/ExitAirTempSensor.cpp
+++ b/src/ExitAirTempSensor.cpp
@@ -149,10 +149,10 @@
const std::string& sensorName,
const std::string& sensorConfiguration,
sdbusplus::asio::object_server& objectServer,
- std::vector<thresholds::Threshold>&& thresholds,
+ std::vector<thresholds::Threshold>&& thresholdData,
std::shared_ptr<ExitAirTempSensor>& parent) :
Sensor(boost::replace_all_copy(sensorName, " ", "_"),
- "" /* todo: remove arg from base*/, std::move(thresholds),
+ "" /* todo: remove arg from base*/, std::move(thresholdData),
sensorConfiguration, "xyz.openbmc_project.Configuration.ExitAirTemp",
cfmMaxReading, cfmMinReading),
dbusConnection(conn), parent(parent), objServer(objectServer)
@@ -469,9 +469,9 @@
std::shared_ptr<sdbusplus::asio::connection>& conn,
const std::string& sensorName, const std::string& sensorConfiguration,
sdbusplus::asio::object_server& objectServer,
- std::vector<thresholds::Threshold>&& thresholds) :
+ std::vector<thresholds::Threshold>&& thresholdData) :
Sensor(boost::replace_all_copy(sensorName, " ", "_"),
- "" /* todo: remove arg from base*/, std::move(thresholds),
+ "" /* todo: remove arg from base*/, std::move(thresholdData),
sensorConfiguration, "xyz.openbmc_project.Configuration.ExitAirTemp",
exitAirMaxReading, exitAirMinReading),
dbusConnection(conn), objServer(objectServer)