summaryrefslogtreecommitdiffstats
path: root/read_fru_data.cpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2018-01-19 16:23:10 +0530
committerRatan Gupta <ratagupt@in.ibm.com>2018-02-12 14:24:33 +0530
commit003309731e2e1dbf22b85d8691357177747846f4 (patch)
treeafafbca763f0dbbc4fdc1f244ea90da06c1ef27b /read_fru_data.cpp
parentd211702b0c149fc548825f1d1066eb8c73993377 (diff)
downloadphosphor-host-ipmid-003309731e2e1dbf22b85d8691357177747846f4.tar.gz
phosphor-host-ipmid-003309731e2e1dbf22b85d8691357177747846f4.zip
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 <ratagupt@in.ibm.com>
Diffstat (limited to 'read_fru_data.cpp')
-rw-r--r--read_fru_data.cpp6
1 files changed, 3 insertions, 3 deletions
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);
OpenPOWER on IntegriCloud