[PR #8923/83080cc0 backport][stable-9] keycloak_userprofile: fix empty response by removing `parent` filter when fetching userprofile component (#8960)
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>
(cherry picked from commit 83080cc005
)
Co-authored-by: fgruenbauer <gruenbauer@b1-systems.de>
pull/8967/head
parent
185bdaaa39
commit
bf4e5dc3c0
|
@ -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)
|
||||
|
||||
# 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
|
||||
# also known as the Provider ID.
|
||||
|
|
Loading…
Reference in New Issue