Bug #31445
closedWhen deleting a content view version, all hosts have been listed as affected even hosts are not using it
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1872161
Description of problem:
When deleting a content view version, all hosts have been listed as affected even hosts are not assigned to it.
Version-Release number of selected component (if applicable):
6.7
How reproducible:
When there is at least one affected host
Steps to Reproduce:
1. Create a content view and publish it to an environment
2. Assign a couple of hosts to the content view
3. Delete the content view version through the web ui
Content -> Content Views -> the CV -> Versions tab -> Remove the latest version.
4. Check "Completely remove version?" checkbox to delete the version completely and click "Next" button.
5. In the "Content Hosts using Version" page click the "Show affected Content Hosts" link to show all affected hosts
Actual results:
All hosts are listed
Expected results:
Only affected hosts are listed