diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-02-17 03:12:08 -0600 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-02-20 14:20:21 +0000 |
commit | 128512b28e36ba90f1f5bfce4ea9341e42e9eb3a (patch) | |
tree | 63448a33b5c72ab6772b1945cb838ff7574a4870 | |
parent | c7b2a7125523c18ff5f58ebd662c49b0b728054f (diff) | |
download | openpower-vpd-parser-128512b28e36ba90f1f5bfce4ea9341e42e9eb3a.tar.gz openpower-vpd-parser-128512b28e36ba90f1f5bfce4ea9341e42e9eb3a.zip |
inventory: update extra properties
Change-Id: I23abf88d877ef1bceb312121fb5e1e5d91a068ad
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
-rwxr-xr-x | writefru.mako.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/writefru.mako.hpp b/writefru.mako.hpp index 9275e9f..8912738 100755 --- a/writefru.mako.hpp +++ b/writefru.mako.hpp @@ -11,6 +11,7 @@ #include "store.hpp" #include "types.hpp" #include "utils.hpp" +#include "extra-properties-gen.hpp" namespace openpower { @@ -64,6 +65,14 @@ void writeFru<Fru::${key}>(const Store& vpdStore, % endfor sdbusplus::message::object_path object(path); + // Check and update extra properties + if(extra::objects.end() != extra::objects.find(path)) + { + for(const auto& entry : extra::objects.at(path)) + { + interfaces.emplace(entry.first, entry.second); + } + } objects.emplace(std::move(object), std::move(interfaces)); callPIM(std::move(objects)); |