Skip to content

Commit

Permalink
use reconciler sku array instead of sku_billing
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcusk19 committed Mar 26, 2024
1 parent b326064 commit 09cf162
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions util/marketplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import requests

from data.billing import RH_SKUS, get_plan_using_rh_sku
from data.billing import RECONCILER_SKUS, RH_SKUS, get_plan_using_rh_sku
from data.model import entitlements, organization_skus

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -232,9 +232,10 @@ def get_list_of_subscriptions(
if subscriptions:
for user_subscription in subscriptions:
if user_subscription is not None:
if user_subscription[
"masterEndSystemName"
] == "SUBSCRIPTION" and not sku.get("sku_billing"):
if (
user_subscription["masterEndSystemName"] == "SUBSCRIPTION"
and sku not in RECONCILER_SKUS
):
continue

bound_to_org = organization_skus.subscription_bound_to_org(
Expand Down

0 comments on commit 09cf162

Please sign in to comment.