Project

General

Profile

Bug #30358

Assets are not deleted when unassigning policy from host

Added by Ondřej Pražák about 1 month ago. Updated 4 days ago.

Status:
Closed
Priority:
Normal
Target version:
-

Description

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.

Associated revisions

Revision 01e96f1b (diff)
Added by Ondřej Pražák 29 days ago

Fixes #30358 - Delete assets when unassigning hosts

History

#1 Updated by The Foreman Bot about 1 month ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_openscap/pull/441 added

#2 Updated by The Foreman Bot 29 days ago

  • Fixed in Releases foreman_openscap 4.1.0 added

#3 Updated by Ondřej Pražák 21 days ago

  • Status changed from Ready For Testing to Closed

#4 Updated by The Foreman Bot 4 days ago

  • Pull request https://github.com/theforeman/foreman_openscap/pull/450 added

Also available in: Atom PDF