-
Notifications
You must be signed in to change notification settings - Fork 89
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
mysql_role: don't add members to a role when creating the role and "detach_members: true" is set #367
mysql_role: don't add members to a role when creating the role and "detach_members: true" is set #367
Conversation
…etach_members: true" is set, add integration test
Codecov Report
@@ Coverage Diff @@
## main #367 +/- ##
==========================================
+ Coverage 78.23% 78.25% +0.01%
==========================================
Files 27 27
Lines 2270 2272 +2
Branches 551 552 +1
==========================================
+ Hits 1776 1778 +2
Misses 335 335
Partials 159 159
Continue to review full report at Codecov.
|
@betanummeric thanks for the fix! Could you please:
|
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.
@betanummeric LGTM thanks! Let's make the changelog view consistent, could you please change it as suggested? After that I'll merge the PR
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
@betanummeric thanks for the contribution! |
Backported manually #372 |
BUGFIX: fixes #366 (the "adding unwanted members" part)
SUMMARY
In the mysql_role module, if the argument
detach_members
is true, the role should be revoked from the users specified in themembers
argument (if necessary). This PR fixes this behavior for when the role does not exist and is created (avoid granting the role to the users).