-
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_clientscope_type fix checkmode #9093
keycloak_clientscope_type fix checkmode #9093
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
77444c7
to
d2254dc
Compare
This comment was marked as outdated.
This comment was marked as outdated.
d2254dc
to
28dbc98
Compare
changelogs/fragments/9092-keycloak-clientscope-type-fix-check-mode.yml
Outdated
Show resolved
Hide resolved
changelogs/fragments/9092-keycloak-clientscope-type-fix-check-mode.yml
Outdated
Show resolved
Hide resolved
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
If nobody objects, I'll merge this tomorrow. |
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #9095 🤖 @patchback |
* fix check_mode on set keycloak client scope type (#9092) * add changelog fragment (#9092) * update changelog fragment (#9092) * compact code: make one line conditions with list comprehension and any() Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * fix syntax error: remove extra ')' * fix changelog fragment type Co-authored-by: Felix Fontein <felix@fontein.de> * add issue's link in changelog fragment Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 8fc11fe)
@witrdotnet thanks for your contribution! |
…checkmode (#9095) keycloak_clientscope_type fix checkmode (#9093) * fix check_mode on set keycloak client scope type (#9092) * add changelog fragment (#9092) * update changelog fragment (#9092) * compact code: make one line conditions with list comprehension and any() Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * fix syntax error: remove extra ')' * fix changelog fragment type Co-authored-by: Felix Fontein <felix@fontein.de> * add issue's link in changelog fragment Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 8fc11fe) Co-authored-by: witrdotnet <witr.net@gmail.com>
* fix check_mode on set keycloak client scope type (ansible-collections#9092) * add changelog fragment (ansible-collections#9092) * update changelog fragment (ansible-collections#9092) * compact code: make one line conditions with list comprehension and any() Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * fix syntax error: remove extra ')' * fix changelog fragment type Co-authored-by: Felix Fontein <felix@fontein.de> * add issue's link in changelog fragment Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> Co-authored-by: Felix Fontein <felix@fontein.de>
SUMMARY
Exit json with
result
only after evaluatingdefault_clientscopes_add
,optional_clientscopes_add
,default_clientscopes_delete
,optional_clientscopes_delete
and after updatingresult["changed"]
. Otherwise,keycloak_clientscope_type
will not detect changes in check mode.Fixes #9092
ISSUE TYPE
COMPONENT NAME
keycloak_clientscope_type
ADDITIONAL INFORMATION
Before fix (check mode)
After fix (check mode)