app/lib/actions/katello/orphan_cleanup/remove_orphans.rb in katello-4.0.1.2 vs app/lib/actions/katello/orphan_cleanup/remove_orphans.rb in katello-4.0.2
- old
+ new
@@ -1,14 +1,14 @@
module Actions
module Katello
module OrphanCleanup
- class RemoveOrphans < Pulp::Abstract
+ class RemoveOrphans < Actions::Base
input_format do
param :capsule_id
end
def plan(proxy)
sequence do
- plan_action(Actions::Pulp::Orchestration::OrphanCleanup::RemoveOrphans, proxy)
+ plan_action(Actions::Pulp::Orchestration::OrphanCleanup::RemoveOrphans, proxy) if (proxy.has_feature?(SmartProxy::PULP_FEATURE) || proxy.has_feature?(SmartProxy::PULP_NODE_FEATURE))
if proxy.pulp3_enabled?
plan_action(
Actions::Pulp3::Orchestration::OrphanCleanup::RemoveOrphans,
proxy)
end