Project

General

Profile

Actions

Bug #6322

closed

We need to clean up the Foreman environments when deleting a ContentViewEnvironment or ContentViewVersion

Added by David Davis almost 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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
Actions

Also available in: Atom PDF