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
fachleitner f0b3bba030
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>
2022-12-05 06:23:00 +01:00
..
action Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
become Make pfexec become usable for illumos (#3889) 2022-10-05 08:26:40 +02:00
cache Normalize more booleans. (#5247) 2022-09-06 20:42:17 +02:00
callback unixy Callback: Use Ansible's config manager (#5601) 2022-11-28 21:51:23 +00:00
connection chroot plugin fix inventory_hostname var for remote_addr (#5570) 2022-11-17 06:53:46 +01:00
doc_fragments Document attributes (_info and _facts modules for now) (#5481) 2022-11-06 21:16:43 +01:00
filter Clarification to use underscores instead of dashes in parser name (#5500) 2022-11-08 20:06:59 +01:00
inventory Updated tags delimiter (#5602) 2022-12-04 12:42:46 +01:00
lookup dependent lookup: prevent deprecation warning with ansible-core 2.14 (#5543) 2022-11-15 08:12:09 +01:00
module_utils Fix keycloak_client_rolemapping role removal and diff (#5619) 2022-12-05 06:23:00 +01:00
modules Fix keycloak_client_rolemapping role removal and diff (#5619) 2022-12-05 06:23:00 +01:00
test Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00