From f915f85070d87a13ce9cabe8f27e2be64e507ef0 Mon Sep 17 00:00:00 2001 From: Dhruvaraj Subhashchandran Date: Thu, 14 Sep 2017 07:01:48 -0500 Subject: Use static path for inventory manager During boot after sending the inventory details host is asking for the a sensor value, that request is getting blocked because the ipmid on BMC is busy with processing the inventory data. Adding an optimization in processing inventory, which will reduce the wait. Change-Id: I490c98220e0244fb6c766432aa1ea8cf25ae1502 Signed-off-by: Dhruvaraj Subhashchandran --- sensordatahandler.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sensordatahandler.cpp b/sensordatahandler.cpp index aca81c7..1776ec7 100644 --- a/sensordatahandler.cpp +++ b/sensordatahandler.cpp @@ -286,11 +286,8 @@ IpmiUpdateData makeDbusMsg(const std::string& updateInterface, sdbusplus::bus::bus bus{ipmid_get_sd_bus_connection()}; using namespace std::string_literals; - std::string dbusService; - std::string dbusPath; - - std::tie(dbusPath, dbusService) = getServiceAndPath(bus, - updateInterface); + static const auto dbusPath = "/xyz/openbmc_project/inventory"s; + std::string dbusService = ipmi::getService(bus, updateInterface, dbusPath); return bus.new_method_call(dbusService.c_str(), dbusPath.c_str(), -- cgit v1.2.1