temp: fix use len(list) not list.count() in expire_and_create_entitlements (#32565)

This commit is contained in:
Phillip Shiu
2023-06-23 17:05:49 -04:00
committed by GitHub
parent 886227c88b
commit fb9bf9325e

View File

@@ -136,4 +136,4 @@ def expire_and_create_entitlements(self, entitlement_ids, support_username):
except Exception as exc: # pylint: disable=broad-except
LOGGER.exception('Failed to expire entitlements that reached their expiration period')
LOGGER.info('Successfully completed the task expire_and_create_entitlements after examining %d entries', entitlement_ids.count()) # lint-amnesty, pylint: disable=line-too-long
LOGGER.info('Successfully completed the task expire_and_create_entitlements after examining %d entries', len(entitlement_ids)) # lint-amnesty, pylint: disable=line-too-long