-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keycloak_realm: fix change detection in check mode by normalizing realms beforehand #8877
keycloak_realm: fix change detection in check mode by normalizing realms beforehand #8877
Conversation
If nobody objects, I'll merge this in a week. |
Backport to stable-8: 💚 backport PR created✅ Backport PR branch: Backported as #8902 🤖 @patchback |
@fgruenbauer thanks for your contribution! |
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #8903 🤖 @patchback |
…ection in check mode by normalizing realms beforehand (#8902) keycloak_realm: fix change detection in check mode by normalizing realms beforehand (#8877) * keycloak_realm: fix change detection in check mode by normalizing realms beforehand * add changelog fragment (cherry picked from commit deaad6e) Co-authored-by: fgruenbauer <[email protected]>
…ection in check mode by normalizing realms beforehand (#8903) keycloak_realm: fix change detection in check mode by normalizing realms beforehand (#8877) * keycloak_realm: fix change detection in check mode by normalizing realms beforehand * add changelog fragment (cherry picked from commit deaad6e) Co-authored-by: fgruenbauer <[email protected]>
…lms beforehand (ansible-collections#8877) * keycloak_realm: fix change detection in check mode by normalizing realms beforehand * add changelog fragment
SUMMARY
The lists
enabledEventTypes
,otpSupportedApplications
andsupportedLocales
are sorted (in the normalize function) for the diff but not when comparing realms for thechanged
parameter. So the module always detects a change in check mode but shows an empty diff:To minimize the changes, the lists should be sorted before comparing the realms as well.
ISSUE TYPE
COMPONENT NAME
keycloak_realm
ADDITIONAL INFORMATION