Project

General

Profile

Revision d76bdbc0

Added by Andrew Kofink over 6 years ago

Fixes #17051 - PUT quantity to attach for AK subs (#134)

PUT the quantity to attach to the activation key rather than the
total quantity attached

`activation-keys --itemized-subscriptions --file ak_subs.csv`

View differences:

lib/hammer_cli_csv/activation_keys.rb
220 220
        raise _("No matching subscriptions") if matches.empty?
221 221

  
222 222
        match = matches[0]
223
        print _(" attaching '%{name}'...") % {:name => match['name']} if option_verbose?
223

  
224
        match = match_with_quantity_to_attach(match, line)
225

  
226
        if option_verbose?
227
          print _(" attaching %{quantity} of '%{name}'...") % {
228
            :name => match['name'], :quantity => match['quantity']
229
          }
230
        end
224 231

  
225 232
        @api.resource(:activation_keys).call(:add_subscriptions, {
226 233
            'id' => activationkey['id'],

Also available in: Unified diff