Skip to content

Commit

Permalink
Delete FRU VPD if FRU is not present
Browse files Browse the repository at this point in the history
GPIO event handling continuously monitors the presence of the FRU. If it
detects any change, performs deletion of FRU VPD if FRU is not present,
otherwise performs VPD collection if FRU gets added.

This commit adds code to perform deletion of FRU VPD over DBus if FRU
is not present during GPIO event handling.

Signed-off-by: RekhaAparna01 <[email protected]>
  • Loading branch information
RekhaAparna01 committed Jan 17, 2025
1 parent 6a8e56f commit 53a409e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vpd-manager/src/gpio_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ void GpioEventHandler::handleChangeInGpioPin(const bool& i_isFruPresent)
}
else
{
// TODO -- Add implementation to Delete FRU if FRU is not present.
m_worker->deleteFruVpd(jsonUtility::getInventoryObjPathFromJson(
m_worker->getSysCfgJsonObj(), m_fruPath));
}
}
catch (std::exception& l_ex)
Expand Down

0 comments on commit 53a409e

Please sign in to comment.