mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #8545/10535458 backport][stable-9] keycloak_clientscope: ignore ids on diff check (#8554)
keycloak_clientscope: ignore ids on diff check (#8545)
* keycloak_clientscope: ignore ids on diff check
* keycloak_clientscope: add changelog fragment
* keycloak_clientscope: Include changelog fragment change suggestion
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 1053545870
)
Co-authored-by: Noah Lehmann <62204532+noahlehmann@users.noreply.github.com>
This commit is contained in:
parent
49765f103b
commit
5d9072030e
2 changed files with 5 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- keycloak_clientscope - remove IDs from clientscope and its protocol mappers on comparison for changed check (https://github.com/ansible-collections/community.general/pull/8545).
|
|
@ -472,7 +472,9 @@ def main():
|
||||||
# Process an update
|
# Process an update
|
||||||
|
|
||||||
# no changes
|
# no changes
|
||||||
if desired_clientscope == before_clientscope:
|
# remove ids for compare, problematic if desired has no ids set (not required),
|
||||||
|
# normalize for consentRequired in protocolMappers
|
||||||
|
if normalise_cr(desired_clientscope, remove_ids=True) == normalise_cr(before_clientscope, remove_ids=True):
|
||||||
result['changed'] = False
|
result['changed'] = False
|
||||||
result['end_state'] = sanitize_cr(desired_clientscope)
|
result['end_state'] = sanitize_cr(desired_clientscope)
|
||||||
result['msg'] = "No changes required to clientscope {name}.".format(name=before_clientscope['name'])
|
result['msg'] = "No changes required to clientscope {name}.".format(name=before_clientscope['name'])
|
||||||
|
|
Loading…
Reference in a new issue