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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
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): |
|
|