Skip to content

Commit 53a409e

Browse files
committed
Delete FRU VPD if FRU is not present
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]>
1 parent 6a8e56f commit 53a409e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vpd-manager/src/gpio_monitor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ void GpioEventHandler::handleChangeInGpioPin(const bool& i_isFruPresent)
4242
}
4343
else
4444
{
45-
// TODO -- Add implementation to Delete FRU if FRU is not present.
45+
m_worker->deleteFruVpd(jsonUtility::getInventoryObjPathFromJson(
46+
m_worker->getSysCfgJsonObj(), m_fruPath));
4647
}
4748
}
4849
catch (std::exception& l_ex)

0 commit comments

Comments
 (0)