app/lib/actions/pulp3/repository/refresh_distribution.rb in katello-4.4.0.2 vs app/lib/actions/pulp3/repository/refresh_distribution.rb in katello-4.4.1
- old
+ new
@@ -1,11 +1,10 @@
module Actions
module Pulp3
module Repository
class RefreshDistribution < Pulp3::AbstractAsyncTask
include Helpers::Presenter
- middleware.use Actions::Middleware::ExecuteIfContentsChanged
def plan(repository, smart_proxy, options = {})
smart_proxy = SmartProxy.unscoped.find_by(id: smart_proxy) #support bulk actions
sequence do
if !repository.unprotected && !options[:assume_content_guard_exists]
@@ -14,14 +13,12 @@
refresh_options = {
:repository_id => repository.id,
:smart_proxy_id => smart_proxy.id
}
- refresh_options[:contents_changed] if options.key?(:contents_changed)
action = plan_self(refresh_options)
- plan_action(SaveDistributionReferences, repository, smart_proxy,
- action.output, :contents_changed => options[:contents_changed])
+ plan_action(SaveDistributionReferences, repository, smart_proxy, action.output)
end
end
def invoke_external_task
repo = ::Katello::Repository.find(input[:repository_id])