Handle error code in pre action
Call to execute pre action needs to handle error code to detect the type
of failure that occurred while executing the required tags.
Based on error code adequate action needs to be taken.
Change-Id: I428d8eab7d895b17a26068a116c28de1d4616628
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
diff --git a/vpd-manager/include/worker.hpp b/vpd-manager/include/worker.hpp
index 0080696..a40ea24 100644
--- a/vpd-manager/include/worker.hpp
+++ b/vpd-manager/include/worker.hpp
@@ -386,10 +386,12 @@
* @param[in] i_vpdFilePath - Path to the EEPROM file.
* @param[in] i_flagToProcess - To identify which flag(s) needs to be
* processed under PreAction tag of config JSON.
+ * @param[out] o_errCode - To set error code in case of error.
* @return Execution status.
*/
bool processPreAction(const std::string& i_vpdFilePath,
- const std::string& i_flagToProcess);
+ const std::string& i_flagToProcess,
+ uint16_t& o_errCode);
/**
* @brief API to process postAction(base_action) defined in config JSON.