item_updater: Call remove association on delete
The remove association function was supposed to be called
on delete but was never implemented so if the associations
are queried but the version has been deleted, that'd be
false information, so call to remove the associations on delete,
also rename it to delete all associations, because the
functional pnor version can be deleted if the chassis state
is off and the delete function already made that determination.
Tested: Verified all associations (active and functional) are
deleted with a DeleteAll call.
Change-Id: I6e5589256dd8f62ac2ecf7574b9d08920b8b5e3d
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/item_updater.hpp b/item_updater.hpp
index 41e229f..1dc0868 100644
--- a/item_updater.hpp
+++ b/item_updater.hpp
@@ -165,11 +165,11 @@
*/
void updateFunctionalAssociation(const std::string& path);
- /** @brief Removes an active association to the software image
+ /** @brief Removes the associations from the provided software image path
*
* @param[in] path - The path to remove the association from.
*/
- void removeActiveAssociation(const std::string& path);
+ void removeAssociation(const std::string& path);
/** @brief Persistent GardReset dbus object */
std::unique_ptr<GardReset> gardReset;