diff --git a/license_manager/apps/subscriptions/management/commands/retire_old_licenses.py b/license_manager/apps/subscriptions/management/commands/retire_old_licenses.py index f4bb24f7..d20ddb6d 100644 --- a/license_manager/apps/subscriptions/management/commands/retire_old_licenses.py +++ b/license_manager/apps/subscriptions/management/commands/retire_old_licenses.py @@ -57,6 +57,7 @@ def handle(self, *args, **options): revoked_licenses_for_retirement = License.get_licenses_exceeding_purge_duration( 'revoked_date', status=REVOKED, + subscription_plan__for_internal_use_only=False, ) # Scrub all pii on the revoked licenses, but they should stay revoked and keep their other info as we currently # add an unassigned license to the subscription's license pool whenever one is revoked.