Revision d76bdbc0
Added by Andrew Kofink over 6 years ago
lib/hammer_cli_csv/utils/subscriptions.rb | ||
---|---|---|
119 | 119 |
matches |
120 | 120 |
end |
121 | 121 |
|
122 |
def match_with_quantity_to_attach(match, line) |
|
123 |
if line[SUBS_QUANTITY] && line[SUBS_QUANTITY] != 'Automatic' && !line[SUBS_QUANTITY].empty? |
|
124 |
match['quantity'] = line[SUBS_QUANTITY] |
|
125 |
else |
|
126 |
match['quantity'] = -1 |
|
127 |
end |
|
128 |
match |
|
129 |
end |
|
130 |
|
|
122 | 131 |
# Subscription amount, SKU, name, contract number, and account number separated by '|' |
123 | 132 |
# or simply the subscription name. |
124 | 133 |
def split_subscription_details(details) |
Also available in: Unified diff
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`