Skip to content

Commit

Permalink
keycloak_clientscope: ignore ids on diff check (#8545)
Browse files Browse the repository at this point in the history
* keycloak_clientscope: ignore ids on diff check

* keycloak_clientscope: add changelog fragment

* keycloak_clientscope: Include changelog fragment change suggestion

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
noahlehmann and felixfontein authored Jun 22, 2024
1 parent 9e38161 commit 1053545
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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).
4 changes: 3 additions & 1 deletion plugins/modules/keycloak_clientscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,9 @@ def main():
# Process an update

# 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['end_state'] = sanitize_cr(desired_clientscope)
result['msg'] = "No changes required to clientscope {name}.".format(name=before_clientscope['name'])
Expand Down

0 comments on commit 1053545

Please sign in to comment.