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/module_utils
patchback[bot] 671f850069
[PR #5619/f0b3bba0 backport][stable-6] Fix keycloak_client_rolemapping role removal and diff (#5656)
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:11 +00:00
..
identity/keycloak [PR #5619/f0b3bba0 backport][stable-6] Fix keycloak_client_rolemapping role removal and diff (#5656) 2022-12-05 05:47:11 +00:00
mh Remove deprecated features, bump version to 6.0.0 (#5326) 2022-10-25 08:07:21 +02:00
net_tools/pritunl Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
oracle Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
remote_management/lxca Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
source_control Remove deprecated features, bump version to 6.0.0 (#5326) 2022-10-25 08:07:21 +02:00
storage Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00
_mount.py Add remaining copyright statements, add licenses sanity test (#5098) 2022-08-08 23:23:08 +02:00
alicloud_ecs.py multiple modules: removed unused imports (#5240) 2022-09-09 22:23:48 +02:00
cloud.py Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00
cmd_runner.py [PR #5647/be22ca06 backport][stable-6] cmd_runner: allow bool format to pass alternate (false) value (#5650) 2022-12-04 12:39:30 +01:00
csv.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
database.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
deps.py add dependency manager (#5535) (#5574) 2022-11-23 07:37:45 +01:00
dimensiondata.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
gandi_livedns_api.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
gconftool2.py gconftool2: refactored to use ModuleHelper + CmdRunner (#5545) (#5551) 2022-11-23 07:37:27 +01:00
gitlab.py gitlab modules: improved imports (#5259) 2022-09-12 20:30:02 +02:00
heroku.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
hwc_utils.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
ibm_sa_utils.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
ilo_redfish_utils.py Fix linting errors; fix some real bugs (#5111) 2022-08-12 11:07:30 +02:00
influxdb.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
ipa.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
jenkins.py jenkins_plugin: fix sanity checks (#5565) (#5575) 2022-11-23 07:37:52 +01:00
known_hosts.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
ldap.py Allow for DN's to have {x} prefix on first RDN (#5450) 2022-11-05 12:43:28 +01:00
linode.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
lxd.py lxd_project: refactored os.path.expanduser() to module utils (#5549) (#5552) 2022-11-23 07:37:36 +01:00
manageiq.py manageiq_tags_info: new module (#5368) 2022-10-23 11:33:07 +02:00
memset.py Fix linting errors; fix some real bugs (#5111) 2022-08-12 11:07:30 +02:00
module_helper.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
oneandone.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
onepassword.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
oneview.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
online.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
opennebula.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
pipx.py pipx module utils: removed unused import (#5288) 2022-09-18 11:52:15 +02:00
proxmox.py [feat] proxmox_snap: snapshot containers with configured mountpoints (#5274) 2022-09-28 22:48:11 +02:00
pure.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
rax.py rax_scaling_group: fix sanity check (#5563) (#5569) 2022-11-23 07:37:12 +01:00
redfish_utils.py Redfish: Expanded SimpleUpdate command to allow for users to monitor the progress of an update and perform follow-up operations (#5580) (#5590) 2022-11-23 08:03:19 +01:00
redhat.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
redis.py Fix linting errors; fix some real bugs (#5111) 2022-08-12 11:07:30 +02:00
rundeck.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
saslprep.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
scaleway.py [Scaleway] Add module to manage function namespaces (#5415) 2022-11-02 20:11:04 +01:00
univention_umc.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
utm_utils.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
version.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
vexata.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
wdc_redfish_utils.py WDC Redfish support for setting the power mode. (#5145) 2022-09-03 12:45:03 +02:00
xenserver.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
xfconf.py Fix copyright lines (make sure 'Copyright' is there). (#5083) 2022-08-05 22:12:10 +02:00