PEL: Fixed Userdata section parsing
A previous commit incorrectly tries to call python parsers when they do
not exist. This fixes it.
Signed-off-by: Harisuddin Mohamed Isa <harisuddin@gmail.com>
Change-Id: I6e65bc89e60b9ac31077009921d4376ddc8254bf
diff --git a/extensions/openpower-pels/pel.cpp b/extensions/openpower-pels/pel.cpp
index 56d442d..d23bf92 100644
--- a/extensions/openpower-pels/pel.cpp
+++ b/extensions/openpower-pels/pel.cpp
@@ -295,15 +295,7 @@
}
else if (sectionID == "UD")
{
- std::string subsystem = getNumberString("%c", tolower(creatorID));
- std::string component =
- getNumberString("%04x", section.header().componentID);
- if ((std::find(plugins.begin(), plugins.end(),
- subsystem + component) != plugins.end()) ||
- pv::creatorIDs.at(getNumberString("%c", creatorID)) == "BMC")
- {
- json = section.getJSON(creatorID);
- }
+ json = section.getJSON(creatorID, plugins);
}
else
{