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/section.hpp b/extensions/openpower-pels/section.hpp
index 0d079f2..4a11d77 100644
--- a/extensions/openpower-pels/section.hpp
+++ b/extensions/openpower-pels/section.hpp
@@ -74,10 +74,13 @@
/**
* @brief Get section in JSON. Derived classes to override when required to.
* @param[in] creatorID - Creator Subsystem ID from Private Header
+ * @param[in] plugins - Vector of strings of plugins found in filesystem
* @return std::optional<std::string> - If a section comes with a JSON
* representation, this would return the string for it.
*/
- virtual std::optional<std::string> getJSON(uint8_t creatorID) const
+ virtual std::optional<std::string>
+ getJSON(uint8_t creatorID,
+ const std::vector<std::string>& plugins) const
{
return std::nullopt;
}