Correct the ending of Chassis On state
As defined in PDI the "CurrentPowerState" property of "Chassis"
interface has 4 options[1]:
- On
- Off
- TransitioningToOn
- TransitioningToOff
[1]: https://github.com/openbmc/phosphor-dbus-interfaces/blob/2794e9510f3d7872fc7485da793b50d02e0580a7/yaml/xyz/openbmc_project/State/Chassis.interface.yaml
If the ending of "CurrentPowerState" property is "On", it can be "On" or
"TransitioningToOn" option. Therefore, the ending of "CurrentPowerState"
property has to be ".On" to indicate that Chassis's state is On.
Change-Id: Idaede2f433542ba0332667bef48aad723ca55c99
Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
diff --git a/src/Utils.hpp b/src/Utils.hpp
index f553cd6..2438e4f 100644
--- a/src/Utils.hpp
+++ b/src/Utils.hpp
@@ -132,7 +132,7 @@
const static constexpr char* interface = "xyz.openbmc_project.State.Chassis";
const static constexpr char* path = "/xyz/openbmc_project/state/chassis0";
const static constexpr char* property = "CurrentPowerState";
-const static constexpr char* sOn = "On";
+const static constexpr char* sOn = ".On";
} // namespace chassis
namespace post