Browse Source

Fix get_subgroups iteration

hotfix/merge
Akos Hencz 5 years ago
parent
commit
395d30d9d2
  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