control: Replace 'speed' with 'target' in CountStateTarget class
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Change-Id: Ia1515a7bbbffb2a0f0ba54c4a834df290e8eba49
diff --git a/control/json/actions/count_state_target.cpp b/control/json/actions/count_state_target.cpp
index c2e3fcf..911134e 100644
--- a/control/json/actions/count_state_target.cpp
+++ b/control/json/actions/count_state_target.cpp
@@ -90,12 +90,12 @@
void CountStateTarget::setTarget(const json& jsonObj)
{
- if (!jsonObj.contains("speed"))
+ if (!jsonObj.contains("target"))
{
throw ActionParseError{ActionBase::getName(),
- "Missing required speed value"};
+ "Missing required target value"};
}
- _target = jsonObj["speed"].get<uint64_t>();
+ _target = jsonObj["target"].get<uint64_t>();
}
} // namespace phosphor::fan::control::json
diff --git a/control/json/actions/count_state_target.hpp b/control/json/actions/count_state_target.hpp
index 41ad179..2e7d6ec 100644
--- a/control/json/actions/count_state_target.hpp
+++ b/control/json/actions/count_state_target.hpp
@@ -40,7 +40,7 @@
{
public:
/* Name of this action */
- static constexpr auto name = "count_state_before_speed";
+ static constexpr auto name = "count_state_before_target";
CountStateTarget() = delete;
CountStateTarget(const CountStateTarget&) = delete;