Actions
Bug #37820
closedIf a smart proxy sync task fails in plan, for_resource helper does not work
Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman Proxy Content
Target version:
Description
We rely on for_resource scope helper to return failed tasks for a capsule. This helper queries ForemanTask::Link object which is created by the `action_subject` method in plan phase. However if there is a failure during plan phase, the changes are rolled back as part of one transaction leading to deletion of the link record between task and smart proxy record.
The for_resource helper no longer returns the failed 'unlinked' task and as a result we don't show task failure on the UI.
Actions