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/user_data.hpp b/extensions/openpower-pels/user_data.hpp
index e27342e..7fc7ead 100644
--- a/extensions/openpower-pels/user_data.hpp
+++ b/extensions/openpower-pels/user_data.hpp
@@ -83,10 +83,13 @@
/**
* @brief Get the section contents in JSON
* @param[in] creatorID - Creator Subsystem ID from Private Header
+ * @param[in] plugins - Vector of strings of plugins found in filesystem
* @return The JSON as a string if a parser was found,
* otherwise std::nullopt.
*/
- std::optional<std::string> getJSON(uint8_t creatorID) const override;
+ std::optional<std::string>
+ getJSON(uint8_t creatorID,
+ const std::vector<std::string>& plugins) const override;
/**
* @brief Shrink the section