-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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_user_federation: fix key error when removing mappers in update #8762
keycloak_user_federation: fix key error when removing mappers in update #8762
Conversation
Hi @fgruenbauer, thanks for the PR - It solves the |
changelogs/fragments/8762-keycloac_user_federation-fix-key-error-when-updating.yml
Outdated
Show resolved
Hide resolved
…or-when-updating.yml Co-authored-by: Felix Fontein <felix@fontein.de>
Backport to stable-8: 💚 backport PR created✅ Backport PR branch: Backported as #8780 🤖 @patchback |
…te (#8762) * remove new mappers without an id from list comprehension * add changelog fragment * Update changelogs/fragments/8762-keycloac_user_federation-fix-key-error-when-updating.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit b79ac4f)
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #8781 🤖 @patchback |
…te (#8762) * remove new mappers without an id from list comprehension * add changelog fragment * Update changelogs/fragments/8762-keycloac_user_federation-fix-key-error-when-updating.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit b79ac4f)
@fgruenbauer thanks for fixing this! |
…key error when removing mappers in update (#8780) keycloak_user_federation: fix key error when removing mappers in update (#8762) * remove new mappers without an id from list comprehension * add changelog fragment * Update changelogs/fragments/8762-keycloac_user_federation-fix-key-error-when-updating.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit b79ac4f) Co-authored-by: fgruenbauer <gruenbauer@b1-systems.de>
…key error when removing mappers in update (#8781) keycloak_user_federation: fix key error when removing mappers in update (#8762) * remove new mappers without an id from list comprehension * add changelog fragment * Update changelogs/fragments/8762-keycloac_user_federation-fix-key-error-when-updating.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit b79ac4f) Co-authored-by: fgruenbauer <gruenbauer@b1-systems.de>
…te (ansible-collections#8762) * remove new mappers without an id from list comprehension * add changelog fragment * Update changelogs/fragments/8762-keycloac_user_federation-fix-key-error-when-updating.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
…te (ansible-collections#8762) * remove new mappers without an id from list comprehension * add changelog fragment * Update changelogs/fragments/8762-keycloac_user_federation-fix-key-error-when-updating.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
…te (ansible-collections#8762) * remove new mappers without an id from list comprehension * add changelog fragment * Update changelogs/fragments/8762-keycloac_user_federation-fix-key-error-when-updating.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
SUMMARY
The module throws a key error in update code path if there is a new mapper specified in the module arguments.
The desired mapper list
community.general/plugins/modules/keycloak_user_federation.py
Line 1007 in 34519a5
Fixes key error when updating and a new mapper is specified in the module arguments.
ISSUE TYPE
COMPONENT NAME
keycloak_user_federation
ADDITIONAL INFORMATION
Add a new mapper to the module arguments before running a user federation update.