Skip to content

Commit

Permalink
Merge pull request #12 from synkd/add_support_for_unlimited_subscript…
Browse files Browse the repository at this point in the history
…ion_pools

Allow adding entitlements from unlimited pools
  • Loading branch information
synkd authored Sep 1, 2022
2 parents 62ff557 + 317e458 commit 4f7eeef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifester/manifester.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ def process_subscription_pools(self, subscription_pools, subscription_data):
f"The following pools are matches for this subscription: {matching}"
)
for match in matching:
if match["entitlementsAvailable"] > subscription_data["quantity"]:
if (match["entitlementsAvailable"] > subscription_data["quantity"] or
match["entitlementsAvailable"] == -1):
logger.debug(
f"Pool {match['id']} is a match for this subscription and has "
f"{match['entitlementsAvailable']} entitlements available."
Expand Down

0 comments on commit 4f7eeef

Please sign in to comment.