app/controllers/katello/api/v2/repositories_controller.rb in katello-4.1.0.rc2.2 vs app/controllers/katello/api/v2/repositories_controller.rb in katello-4.1.0
- old
+ new
@@ -284,10 +284,10 @@
if params[:source_url].blank? && @repository.url.blank?
fail HttpErrors::BadRequest, _("attempted to sync without a feed URL")
end
- task = async_task(::Actions::Katello::Repository::Sync, @repository, nil, sync_options)
+ task = async_task(::Actions::Katello::Repository::Sync, @repository, sync_options)
respond_for_async :resource => task
rescue Errors::InvalidActionOptionError => e
raise HttpErrors::BadRequest, e.message
end