Revert commit to fix CI errors
The commit https://gerrit.openbmc.org/c/openbmc/openpower-vpd-parser/+/83309
is being reverted to avoid that many changes just to avoid CI error.
The CI error can be fixed with less change.
Change-Id: Id6aeb4bfe91b66863e95c51153c9f2ec43059554
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
diff --git a/vpd-manager/src/manager_main.cpp b/vpd-manager/src/manager_main.cpp
index 0f8424f..11c2d0b 100644
--- a/vpd-manager/src/manager_main.cpp
+++ b/vpd-manager/src/manager_main.cpp
@@ -35,28 +35,10 @@
auto vpdManager = std::make_shared<vpd::Manager>(
io_con, interface, progressInf, connection);
- try
- {
- // TODO: Take this under conditional compilation for IBM
- auto biosHandler =
- std::make_shared<vpd::BiosHandler<vpd::IbmBiosHandler>>(
- connection, vpdManager);
- biosHandler->checkAndListenPldmService();
- }
- catch (const std::exception& l_ex)
- {
- // Cathcing exception here explicitly to let VPD-Manager service
- // continue even when bios handler fails.
- const std::string& l_errMsg =
- "Instantiation of BIOS Handler failed. { " +
- std::string(l_ex.what()) + std::string(" }");
-
- vpd::EventLogger::createSyncPel(
- vpd::types::ErrorType::FirmwareError,
- vpd::types::SeverityType::Warning, __FILE__, __FUNCTION__, 0,
- l_errMsg, std::nullopt, std::nullopt, std::nullopt,
- std::nullopt);
- }
+ // TODO: Take this under conditional compilation for IBM
+ [[maybe_unused]] auto biosHandler =
+ std::make_shared<vpd::BiosHandler<vpd::IbmBiosHandler>>(
+ connection, vpdManager);
interface->initialize();
progressInf->initialize();