Skip to content

Instantly share code, notes, and snippets.

@daviddavis
Created June 15, 2015 17:18
Show Gist options
  • Select an option

  • Save daviddavis/87f35ae44f8170cc109b to your computer and use it in GitHub Desktop.

Select an option

Save daviddavis/87f35ae44f8170cc109b to your computer and use it in GitHub Desktop.
diff --git a/app/lib/actions/katello/content_view/remove.rb b/app/lib/actions/katello/content_view/remove.rb
index a4fdf1f..775cb74 100644
--- a/app/lib/actions/katello/content_view/remove.rb
+++ b/app/lib/actions/katello/content_view/remove.rb
@@ -109,7 +109,7 @@ module Actions
end
def combined_cv_envs(cv_envs, versions)
- (cv_envs + versions.flat_map(&:content_view_environments)).uniq
+ (cv_envs - versions.flat_map(&:content_view_environments)).uniq
end
def system_cve(options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment