sdbusplus: remove deprecated variant_ns

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie9d2f9838212aba7e3201f8af43586c48e273189
diff --git a/chassis_state_manager.cpp b/chassis_state_manager.cpp
index e71e4b5..c8a0665 100644
--- a/chassis_state_manager.cpp
+++ b/chassis_state_manager.cpp
@@ -82,7 +82,7 @@
         auto reply = this->bus.call(method);
         reply.read(pgood);
 
-        if (sdbusplus::message::variant_ns::get<int>(pgood) == 1)
+        if (std::get<int>(pgood) == 1)
         {
             log<level::INFO>("Initial Chassis State will be On",
                              entry("CHASSIS_CURRENT_POWER_STATE=%s",
@@ -190,8 +190,7 @@
         return false;
     }
 
-    const auto& currentStateStr =
-        sdbusplus::message::variant_ns::get<std::string>(currentState);
+    const auto& currentStateStr = std::get<std::string>(currentState);
     return currentStateStr == ACTIVE_STATE ||
            currentStateStr == ACTIVATING_STATE;
 }