mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Allow importing licenses with a missing "usage" attribute (#14326)
This commit is contained in:
@@ -292,7 +292,7 @@ class Licenser(object):
|
|||||||
license['productId'] = sub['product_id']
|
license['productId'] = sub['product_id']
|
||||||
license['quantity'] = int(sub['quantity'])
|
license['quantity'] = int(sub['quantity'])
|
||||||
license['support_level'] = sub['support_level']
|
license['support_level'] = sub['support_level']
|
||||||
license['usage'] = sub['usage']
|
license['usage'] = sub.get('usage')
|
||||||
license['subscription_name'] = sub['name']
|
license['subscription_name'] = sub['name']
|
||||||
license['subscriptionId'] = sub['subscription_id']
|
license['subscriptionId'] = sub['subscription_id']
|
||||||
license['accountNumber'] = sub['account_number']
|
license['accountNumber'] = sub['account_number']
|
||||||
|
|||||||
Reference in New Issue
Block a user