Project

General

Profile

Revision 611959a3

Added by Thomas McKay over 5 years ago

fixes #16281 - add --itemized-subscriptions to activation-keys

View differences:

lib/hammer_cli_csv/splice.rb
264 264
        subscriptions = CSV.parse_line(line[SUBSCRIPTIONS], {:skip_blanks => true}).collect do |details|
265 265
          (amount, sku, name) = details.split('|')
266 266
          {
267
            :id => katello_subscription(line[ORGANIZATION], :name => name),
267
            :id => get_subscription(line[ORGANIZATION], :name => name),
268 268
            :quantity => (amount.nil? || amount.empty? || amount == 'Automatic') ? 0 : amount.to_i
269 269
          }
270 270
        end

Also available in: Unified diff