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