app/lib/actions/katello/host/remove_subscriptions.rb in katello-3.7.1.1 vs app/lib/actions/katello/host/remove_subscriptions.rb in katello-3.8.0.rc1
- old
+ new
@@ -11,10 +11,10 @@
pools_with_quantities = pools_with_quantities_params.map do |pool_with_quantity|
::Katello::PoolWithQuantities.fetch(pool_with_quantity)
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|
pool_ids << entitlement['pool']['id']
plan_action(::Actions::Candlepin::Consumer::RemoveSubscription, :uuid => host.subscription_facet.uuid,