chassis check power status: use PDI constants

Use PDI constants where applicable.

Tested: Inspection only.

Change-Id: I2e012c06bf0c719055d4d3b8e90e06d620c3852b
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/chassis_check_power_status.cpp b/chassis_check_power_status.cpp
index cd9eae8..a90f76a 100644
--- a/chassis_check_power_status.cpp
+++ b/chassis_check_power_status.cpp
@@ -55,9 +55,10 @@
     // If the chassis power status is not good, log an error and exit with
     // a non-zero rc so the system does not power on
     auto currentPowerStatus = phosphor::state::manager::utils::getProperty(
-        bus, chassisPath, ChassisState::interface, "CurrentPowerStatus");
-    if (currentPowerStatus !=
-        "xyz.openbmc_project.State.Chassis.PowerStatus.Good")
+        bus, chassisPath, ChassisState::interface,
+        ChassisState::property_names::current_power_status);
+    if (currentPowerStatus != ChassisState::convertPowerStatusToString(
+                                  ChassisState::PowerStatus::Good))
     {
         error("Chassis power status is not good: {CURRENT_PWR_STATUS}",
               "CURRENT_PWR_STATUS", currentPowerStatus);