mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 09:18:48 -03: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['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']
|
||||
|
||||
Reference in New Issue
Block a user