hypervisor state manager: use PDI constants

Use PDI constants where applicable.

Tested: Inspection only.

Change-Id: I981419a186a31dc3c7f40cc19da9a48d5704f955
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/hypervisor_state_manager.cpp b/hypervisor_state_manager.cpp
index c0a9752..dcde742 100644
--- a/hypervisor_state_manager.cpp
+++ b/hypervisor_state_manager.cpp
@@ -63,18 +63,18 @@
 {
     debug("New BootProgress: {BOOTPROGRESS}", "BOOTPROGRESS", bootProgress);
 
-    if (bootProgress == "xyz.openbmc_project.State.Boot.Progress."
-                        "ProgressStages.SystemInitComplete")
+    if (bootProgress == BootProgress::convertProgressStagesToString(
+                            BootProgress::ProgressStages::SystemInitComplete))
     {
         currentHostState(server::Host::HostState::Standby);
     }
-    else if (bootProgress == "xyz.openbmc_project.State.Boot.Progress."
-                             "ProgressStages.OSRunning")
+    else if (bootProgress == BootProgress::convertProgressStagesToString(
+                                 BootProgress::ProgressStages::OSRunning))
     {
         currentHostState(server::Host::HostState::Running);
     }
-    else if (bootProgress == "xyz.openbmc_project.State.Boot.Progress."
-                             "ProgressStages.Unspecified")
+    else if (bootProgress == BootProgress::convertProgressStagesToString(
+                                 BootProgress::ProgressStages::Unspecified))
     {
         // Unspecified is set when the system is powered off so
         // set the state to off and reset the requested host state