summaryrefslogtreecommitdiff
path: root/redfish-core/lib/systems.hpp
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2020-05-14 01:38:24 +0300
committerPatrick Williams <patrick@stwcx.xyz>2020-05-14 06:15:18 +0300
commit19bd78d9b79085526fd520d8f5c020905db1122a (patch)
treee9f467974303a9ad31a22f2c1e554407c124d733 /redfish-core/lib/systems.hpp
parent8d78b7a9f5fbca338a5867d5dd4fa83890d79bc7 (diff)
downloadbmcweb-19bd78d9b79085526fd520d8f5c020905db1122a.tar.xz
sdbusplus: replace message::variant with std::variant
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ia5d0845741f1d8d4bc6fd227c6d2e6f3a8d42b2e
Diffstat (limited to 'redfish-core/lib/systems.hpp')
-rw-r--r--redfish-core/lib/systems.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index a4c4f5bd61..c17e13537d 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -893,7 +893,7 @@ static void getBootProperties(std::shared_ptr<AsyncResp> aResp)
crow::connections::systemBus->async_method_call(
[aResp](const boost::system::error_code ec,
- const sdbusplus::message::variant<bool> &oneTime) {
+ const std::variant<bool> &oneTime) {
if (ec)
{
BMCWEB_LOG_DEBUG << "DBUS response error " << ec;
@@ -929,7 +929,7 @@ void getPowerRestorePolicy(std::shared_ptr<AsyncResp> aResp)
crow::connections::systemBus->async_method_call(
[aResp](const boost::system::error_code ec,
- sdbusplus::message::variant<std::string> &policy) {
+ std::variant<std::string> &policy) {
if (ec)
{
BMCWEB_LOG_DEBUG << "DBUS response error " << ec;
@@ -1111,9 +1111,8 @@ static void setBootProperties(std::shared_ptr<AsyncResp> aResp,
crow::connections::systemBus->async_method_call(
[aResp, bootSource{std::move(bootSource)},
- bootEnable{std::move(bootEnable)}](
- const boost::system::error_code ec,
- const sdbusplus::message::variant<bool> &oneTime) {
+ bootEnable{std::move(bootEnable)}](const boost::system::error_code ec,
+ const std::variant<bool> &oneTime) {
if (ec)
{
BMCWEB_LOG_DEBUG << "DBUS response error " << ec;