From 003309731e2e1dbf22b85d8691357177747846f4 Mon Sep 17 00:00:00 2001 From: Ratan Gupta Date: Fri, 19 Jan 2018 16:23:10 +0530 Subject: Inventory:- making changes in the mako and the C++ structure As fru yaml would be having extra properties like entityID,entityInstance so changes were needed to make the change in the corresponding c++ structure. Change-Id: I314d1556cf07a3e212996615c1cd2f28fb6d9bba Signed-off-by: Ratan Gupta --- read_fru_data.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'read_fru_data.cpp') diff --git a/read_fru_data.cpp b/read_fru_data.cpp index 510f0af..a1bced9 100644 --- a/read_fru_data.cpp +++ b/read_fru_data.cpp @@ -82,7 +82,7 @@ void processFruPropChange(sdbusplus::message::message& msg) auto& instanceList = fru.second; for (auto& instance : instanceList) { - if(instance.first == path) + if(instance.path == path) { found = true; break; @@ -133,10 +133,10 @@ FruInventoryData readDataFromInventory(const FRUId& fruNum) auto& instanceList = iter->second; for (auto& instance : instanceList) { - for (auto& intf : instance.second) + for (auto& intf : instance.interfaces) { ipmi::PropertyMap allProp = readAllProperties( - intf.first, instance.first); + intf.first, instance.path); for (auto& properties : intf.second) { auto iter = allProp.find(properties.first); -- cgit v1.2.1