sdbusplus: remove deprecated variant_ns
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie9d2f9838212aba7e3201f8af43586c48e273189
diff --git a/discover_system_state.cpp b/discover_system_state.cpp
index 836011a..8038dd7 100644
--- a/discover_system_state.cpp
+++ b/discover_system_state.cpp
@@ -87,14 +87,14 @@
throw;
}
- if (sdbusplus::message::variant_ns::get<std::string>(property).empty())
+ if (std::get<std::string>(property).empty())
{
log<level::ERR>("Error reading property response",
entry("PROPERTY=%s", propertyName.c_str()));
throw std::runtime_error("Error reading property response");
}
- return sdbusplus::message::variant_ns::get<std::string>(property);
+ return std::get<std::string>(property);
}
void setProperty(sdbusplus::bus::bus& bus, const std::string& path,
@@ -170,7 +170,7 @@
elog<InternalFailure>();
}
- auto powerPolicy = sdbusplus::message::variant_ns::get<std::string>(result);
+ auto powerPolicy = std::get<std::string>(result);
log<level::INFO>("Host power is off, checking power policy",
entry("POWER_POLICY=%s", powerPolicy.c_str()));