Skip to content

Commit

Permalink
Allow importing licenses with a missing "usage" attribute (ansible#14326
Browse files Browse the repository at this point in the history
)
  • Loading branch information
phess authored and kialam committed Aug 15, 2023
1 parent df084f7 commit 7fb95fc
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 7fb95fc

Please sign in to comment.