Fix variant usage
Replace variant.get with ::get<type>(variant)
Change-Id: I42e690e0da4a17afe7cc9c3d0835bbf530abbe58
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/utils.cpp b/src/utils.cpp
index 3851e82..27c25de 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -122,7 +122,8 @@
objectInfo = std::make_pair(object.first, object.second.begin()->first);
// if LinkLocalIP found look for Non-LinkLocalIP
- if (ipmi::network::isLinkLocalIP(variant.get<std::string>()))
+ if (ipmi::network::isLinkLocalIP(
+ sdbusplus::message::variant_ns::get<std::string>(variant)))
{
continue;
}