app/lib/actions/katello/sync_plan/run.rb in katello-3.16.0.rc5 vs app/lib/actions/katello/sync_plan/run.rb in katello-3.16.0.rc5.1

- old
+ new

@@ -17,10 +17,10 @@ action_subject(sync_plan) User.as_anonymous_admin do syncable_products = sync_plan.products.syncable syncable_roots = ::Katello::RootRepository.where(:product_id => syncable_products).has_url - plan_action(::Actions::BulkAction, ::Actions::Katello::Repository::Sync, syncable_roots.map(&:library_instance)) unless syncable_roots.empty? + plan_action(::Actions::BulkAction, ::Actions::Katello::Repository::Sync, syncable_roots.map(&:library_instance).compact) unless syncable_roots.empty? plan_self(:sync_plan_name => sync_plan.name) end end def add_missing_task_group(sync_plan)