Skip to content

Commit

Permalink
Allow importing licenses with a missing "usage" attribute (#14326)
Browse files Browse the repository at this point in the history
  • Loading branch information
phess authored Aug 9, 2023
1 parent e5a6007 commit c2d0284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/main/utils/licensing.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def get_satellite_subs(self, host, user, pw):
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']
Expand Down

0 comments on commit c2d0284

Please sign in to comment.