diff --git a/redfish-core/lib/memory.hpp b/redfish-core/lib/memory.hpp index 7dad72491..fb4983325 100644 --- a/redfish-core/lib/memory.hpp +++ b/redfish-core/lib/memory.hpp @@ -640,9 +640,9 @@ inline void getDimmDataByService( BMCWEB_LOG_DEBUG("Get available system components."); sdbusplus::asio::getAllProperties( *crow::connections::systemBus, service, objPath, "", - [dimmId, asyncResp{std::move(asyncResp)}]( - const boost::system::error_code& ec, - const dbus::utility::DBusPropertiesMap& properties) { + [dimmId, asyncResp{std::move(asyncResp)}, + objPath](const boost::system::error_code& ec, + const dbus::utility::DBusPropertiesMap& properties) { if (ec) { BMCWEB_LOG_DEBUG("DBUS response error"); @@ -651,9 +651,15 @@ inline void getDimmDataByService( } assembleDimmProperties(dimmId, asyncResp, properties, ""_json_pointer); + if constexpr (BMCWEB_HW_ISOLATION) + { + // Check for the hardware status event + hw_isolation_utils::getHwIsolationStatus(asyncResp, objPath); + } }); } + inline void assembleDimmPartitionData( const std::shared_ptr& asyncResp, const dbus::utility::DBusPropertiesMap& properties,