diff options
author | Pablo Hess <phess@users.noreply.github.com> | 2023-08-09 22:41:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 22:41:14 +0200 |
commit | c2d02841e8bd53ba3977c198693d4aa240180f32 (patch) | |
tree | 112551dff1846d4b83d0c9148d6b203cdd5a5a5a | |
parent | fix broken link to upgrade docs. related #11313 (#14296) (diff) | |
download | awx-c2d02841e8bd53ba3977c198693d4aa240180f32.tar.xz awx-c2d02841e8bd53ba3977c198693d4aa240180f32.zip |
Allow importing licenses with a missing "usage" attribute (#14326)
-rw-r--r-- | awx/main/utils/licensing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/awx/main/utils/licensing.py b/awx/main/utils/licensing.py index 8e621e1312..13043e9075 100644 --- a/awx/main/utils/licensing.py +++ b/awx/main/utils/licensing.py @@ -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'] |