Browse Source

Stopping pagination requests if response count is lower than page size.

pull/212/head
Michael Kao 3 years ago
parent
commit
227b698b3f
  1. 2
      keycloak/keycloak_admin.py

2
keycloak/keycloak_admin.py

@ -223,6 +223,8 @@ class KeycloakAdmin:
if not partial_results: if not partial_results:
break break
results.extend(partial_results) results.extend(partial_results)
if len(partial_results) < query['max']:
break
page += 1 page += 1
return results return results

Loading…
Cancel
Save