keycloak_userprofile: fix empty response by removing `parent` filter when fetching userprofile component (#8923)
* remove parent filter when fetching userprofile component * add changelog fragment * Update changelogs/fragments/8923-keycloak_userprofile-fix-empty-response-when-fetching-userprofile.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>pull/8970/head
parent
7c913b239a
commit
83080cc005
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- keycloak_userprofile - fix empty response when fetching userprofile component by removing ``parent=parent_id`` filter (https://github.com/ansible-collections/community.general/pull/8923).
|
|
@ -641,7 +641,7 @@ def main():
|
||||||
changeset_copy = deepcopy(changeset)
|
changeset_copy = deepcopy(changeset)
|
||||||
|
|
||||||
# Get a list of all Keycloak components that are of userprofile provider type.
|
# Get a list of all Keycloak components that are of userprofile provider type.
|
||||||
realm_userprofiles = kc.get_components(urlencode(dict(type=provider_type, parent=parent_id)), parent_id)
|
realm_userprofiles = kc.get_components(urlencode(dict(type=provider_type)), parent_id)
|
||||||
|
|
||||||
# If this component is present get its userprofile ID. Confusingly the userprofile ID is
|
# If this component is present get its userprofile ID. Confusingly the userprofile ID is
|
||||||
# also known as the Provider ID.
|
# also known as the Provider ID.
|
||||||
|
|
Loading…
Reference in New Issue