Bug #6322
closed
We need to clean up the Foreman environments when deleting a ContentViewEnvironment or ContentViewVersion
Added by David Davis over 10 years ago.
Updated over 6 years ago.
Description
I think this code in KTEnvironment needs to be applied to content view version deletion actions:
http://goo.gl/Lhf8kZ
self.content_views.each do |content_view|
if foreman_env = Environment.find_by_katello_id(self.organization, self, content_view)
foreman_env.destroy
end
end
- Subject changed from We need to clean up the foreman environment when deleting a ContentViewEnvironment or ContentViewVersion to We need to clean up the Foreman environments when deleting a ContentViewEnvironment or ContentViewVersion
- Status changed from New to Assigned
- Assignee set to Justin Sherrill
- Target version set to 48
- Translation missing: en.field_release set to 13
- Difficulty set to easy
- Target version changed from 48 to 49
- Triaged changed from No to Yes
- Target version changed from 49 to 54
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/4414 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF