Browse Source

Merge pull request #19 from ak0ska/subgroups_iteration

Fix get_subgroups iteration
pull/24/head
Marcos Pereira 5 years ago
committed by GitHub
parent
commit
bf0a8490a9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      keycloak/keycloak_admin.py

5
keycloak/keycloak_admin.py

@ -423,7 +423,10 @@ class KeycloakAdmin:
return subgroup return subgroup
elif subgroup["subGroups"]: elif subgroup["subGroups"]:
for subgroup in group["subGroups"]: for subgroup in group["subGroups"]:
return self.get_subgroups(subgroup, path)
result = self.get_subgroups(subgroup, path)
if result:
return result
# went through the tree without hits
return None return None
def get_group_members(self, group_id, **query): def get_group_members(self, group_id, **query):

Loading…
Cancel
Save