Assets are not deleted when unassigning policy from host
The issue does not cause any problems, however we should clean up assets when unassigning policy from hosts.
Steps to reproduce:
1) ForemanOpenscap::Asset.all to check current assets
2) Assign a policy to a host
3) Unassign a policy from a host
4) repeat step 1, notice asset new asset is still present. Repeat steps 2 and 3 and observe asset count to grow.
#3 Updated by Ondřej Pražák 21 days ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_openscap|01e96f1bf2fb1d25064ceb94e9aa8ba5f0c80efa.