Project

General

Profile

« Previous | Next » 

Revision d76bdbc0

Added by Andrew Kofink over 7 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/utils/subscriptions.rb
matches
end
def match_with_quantity_to_attach(match, line)
if line[SUBS_QUANTITY] && line[SUBS_QUANTITY] != 'Automatic' && !line[SUBS_QUANTITY].empty?
match['quantity'] = line[SUBS_QUANTITY]
else
match['quantity'] = -1
end
match
end
# Subscription amount, SKU, name, contract number, and account number separated by '|'
# or simply the subscription name.
def split_subscription_details(details)

Also available in: Unified diff