Skip to content

Commit

Permalink
keycloak_realm: fix change detection in check mode by normalizing rea…
Browse files Browse the repository at this point in the history
…lms beforehand (#8877)

* keycloak_realm: fix change detection in check mode by normalizing realms beforehand

* add changelog fragment
  • Loading branch information
fgruenbauer authored Sep 23, 2024
1 parent 0bf84ba commit deaad6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- keycloak_realm - fix change detection in check mode by sorting the lists in the realms beforehand (https://github.com/ansible-collections/community.general/pull/8877).
2 changes: 1 addition & 1 deletion plugins/modules/keycloak_realm.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ def main():
if module._diff:
result['diff'] = dict(before=sanitize_cr(before_norm),
after=sanitize_cr(desired_norm))
result['changed'] = (before_realm != desired_realm)
result['changed'] = (before_norm != desired_norm)

module.exit_json(**result)

Expand Down

0 comments on commit deaad6e

Please sign in to comment.