1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules
patchback[bot] 7111edd631
[PR #5619/f0b3bba0 backport][stable-5] Fix keycloak_client_rolemapping role removal and diff (#5655)
Fix keycloak_client_rolemapping role removal and diff (#5619)

* Keycloak: Fix client rolemapping removal

Keycloak's delete_group_rolemapping API wrapper didn't pass data about
the roles to remove to keycloak, resulting in removal of all roles.

Follow the intended behaviour and delete only the roles listed in the
module invocation.

Signed-off-by: Florian Achleitner <flo@fopen.at>

* Keycloak: Fix client_rolemapping diff

The module's diff output wrongly showed the changed roles list as
'after' state. This is obviously wrong for role removal and also
wrong for role addition, if there are other roles assigned.

Use the result of the API query for 'end_state' for 'diff' as well.

Signed-off-by: Florian Achleitner <flo@fopen.at>

* Keycloak: Calculate client_rolemapping proposed state properly

Signed-off-by: Florian Achleitner <flo@fopen.at>

* Add changelog fragment

Signed-off-by: Florian Achleitner <flo@fopen.at>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>

* Fix for python2 unit test

Signed-off-by: Florian Achleitner <flo@fopen.at>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit f0b3bba030)

Co-authored-by: fachleitner <flo@fopen.at>
2022-12-05 05:47:14 +00:00
..
cloud Fix for vmadm get_vm_uuid out of range (#5628) (#5634) 2022-11-30 22:49:18 +01:00
clustering short_description fix batch 2 (#5520) (#5522) 2022-11-09 14:08:55 +01:00
database Short descriptions (batch3) - massive fix on Capitalization and trailing period (#5521) (#5528) 2022-11-09 21:19:06 +01:00
files fix the issue#5275: iso_create doesn't add folders (#5468) (#5487) 2022-11-07 07:28:53 +01:00
identity [PR #5619/f0b3bba0 backport][stable-5] Fix keycloak_client_rolemapping role removal and diff (#5655) 2022-12-05 05:47:14 +00:00
monitoring Short descriptions (batch3) - massive fix on Capitalization and trailing period (#5521) (#5528) 2022-11-09 21:19:06 +01:00
net_tools short_description fix batch 2 (#5520) (#5522) 2022-11-09 14:08:55 +01:00
notification Short descriptions (batch3) - massive fix on Capitalization and trailing period (#5521) (#5528) 2022-11-09 21:19:06 +01:00
packaging redhat_subscription: improve wording wrt Satellite (#5581) (#5607) 2022-11-26 18:49:38 +01:00
remote_management short_description fix batch 2 (#5520) (#5522) 2022-11-09 14:08:55 +01:00
source_control short_description fix batch 2 (#5520) (#5522) 2022-11-09 14:08:55 +01:00
storage Short descriptions (batch3) - massive fix on Capitalization and trailing period (#5521) (#5528) 2022-11-09 21:19:06 +01:00
system vdo: Use yaml.safe_load() instead of yaml.load() (#5632) (#5636) 2022-11-30 22:55:56 +01:00
web_infrastructure Short descriptions (batch3) - massive fix on Capitalization and trailing period (#5521) (#5528) 2022-11-09 21:19:06 +01:00