Skip to content

Commit

Permalink
Fixes #4705: Updates repository bulk deletion to delete via dynflow
Browse files Browse the repository at this point in the history
actions and properly remove the repository from Katello and Pulp. This
prevented the ability to create a repository with the same name after deleting
it.
  • Loading branch information
ehelms committed Mar 19, 2014
1 parent a638704 commit b17a499
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ def rules
def destroy_repositories
display_messages = []

@repositories.each{ |repository| repository.destroy }
@repositories.each do |repository|
trigger(::Actions::Katello::Repository::Destroy, repository)
end

display_messages << _("Successfully removed %s repositories") % @repositories.length
respond_for_show :template => 'bulk_action', :resource => { 'displayMessages' => display_messages }
end
Expand Down

0 comments on commit b17a499

Please sign in to comment.