app/lib/actions/katello/capsule_content/sync.rb in katello-3.18.0.rc2.1 vs app/lib/actions/katello/capsule_content/sync.rb in katello-3.18.0
- old
+ new
@@ -37,10 +37,10 @@
refresh_options = options.merge(content_view: content_view,
environment: environment,
repository: repository)
sequence do
- plan_action(Actions::Pulp::Orchestration::Repository::RefreshRepos, smart_proxy, refresh_options)
+ plan_action(Actions::Pulp::Orchestration::Repository::RefreshRepos, smart_proxy, refresh_options) if smart_proxy.has_feature?(SmartProxy::PULP_NODE_FEATURE)
plan_action(Actions::Pulp3::CapsuleContent::RefreshContentGuard, smart_proxy) if repositories.any? { |repo| smart_proxy.pulp3_support?(repo) }
plan_action(Actions::Pulp3::Orchestration::Repository::RefreshRepos, smart_proxy, refresh_options) if smart_proxy.pulp3_enabled?
plan_action(SyncCapsule, smart_proxy, refresh_options)
end
end