Project

General

Profile

« Previous | Next » 

Revision 76ae5b79

Added by Samir Jha almost 6 years ago

Fixes #23968 - fix adding/removing multiple subs

View differences:

app/lib/actions/katello/host/remove_subscriptions.rb
end
cp_consumer = host.subscription_facet.candlepin_consumer
entitlements = pools_with_quantities.map do |pool_with_quantities|
cp_consumer.filter_entitlements(pool_with_quantities.pool.cp_id, pool_with_quantities.quantities)
cp_consumer.filter_entitlements(pool_with_quantities.pool.cp_id)
end
entitlements.flatten.each do |entitlement|

Also available in: Unified diff