app/lib/actions/pulp/consumer/abstract_content_action.rb in katello-3.8.0.rc3 vs app/lib/actions/pulp/consumer/abstract_content_action.rb in katello-3.8.0
- old
+ new
@@ -42,9 +42,21 @@
end
end
messages
end
+ # by default runcible puts whatever we pass into a hash under the 'name' key
+ # here we can make the unit hash more precise
+ def parse_units_for_type
+ if input[:type] == 'rpm'
+ input[:args].collect do |unit|
+ ::Katello::Util::Package.parse_nvrea_nvre(unit) || unit
+ end
+ else
+ input[:args]
+ end
+ end
+
def presenter
Consumer::ContentPresenter.new(self)
end
def rescue_strategy