Allow importing licenses with a missing "usage" attribute (#14326)

This commit is contained in:
Pablo Hess 2023-08-09 17:41:14 -03:00 committed by GitHub
parent e5a6007bf1
commit c2d02841e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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']