diff options
Diffstat (limited to 'redfish-core/include')
-rw-r--r-- | redfish-core/include/redfish_aggregator.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/redfish-core/include/redfish_aggregator.hpp b/redfish-core/include/redfish_aggregator.hpp index 3b48bda092..a6920e86a9 100644 --- a/redfish-core/include/redfish_aggregator.hpp +++ b/redfish-core/include/redfish_aggregator.hpp @@ -756,7 +756,9 @@ class RedfishAggregator handler) { BMCWEB_LOG_DEBUG << "Gathering satellite configs"; - crow::connections::systemBus->async_method_call( + sdbusplus::message::object_path path("/xyz/openbmc_project/inventory"); + dbus::utility::getManagedObjects( + "xyz.openbmc_project.EntityManager", path, [handler{std::move(handler)}]( const boost::system::error_code& ec, const dbus::utility::ManagedObjectType& objects) { @@ -786,10 +788,7 @@ class RedfishAggregator << "No satellite BMCs detected. Redfish Aggregation not enabled"; } handler(ec, satelliteInfo); - }, - "xyz.openbmc_project.EntityManager", - "/xyz/openbmc_project/inventory", - "org.freedesktop.DBus.ObjectManager", "GetManagedObjects"); + }); } // Processes the response returned by a satellite BMC and loads its |