-
Notifications
You must be signed in to change notification settings - Fork 5.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
Add missing MariaDB Grants to mysql module #61410
Conversation
another issue for this: #58297 |
@cebe Looks good. Would be great to add some tests, please let me know if you need help getting those in. |
bump @cebe can you respond to @garethgreenaway comment above? |
#59280 has been merged in which addresses similar issues to this PR. |
Closing this one out in favor of #59280 |
#59280 does not contain all of what is in here, I'll update my branch with the changes from #59280 to show the diff. @garethgreenaway Please reopen. |
@cebe can you resovle the merge conflict? @garethgreenaway will this require tests or is there already test coverage for a change like this? |
@Ch3LL I just rebased my commit on master, here are the changes that are left:
as far as I see, no extra tests are needed for this. |
MariaDB has added some grants in 10.4.x and 10.5.x that are not present here, which results in an error when creating. This is an addition to saltstack#59280. Also improved exception handling in `grant_add` which did not log the original error message and replaced it with a generic error.
Nice, thanks for merging! |
What does this PR do?
MariaDB has added some grants in 10.4.x and 10.5.x that are not present here, which results in an error when creating.
Also improved exception handling in
grant_add
which did not log the original error message and replaced it with a generic error.What issues does this PR fix or reference?
Fixes: #61409
Previous Behavior
Error when trying to add grants that salt is not aware of.
The error message is very unspecific: "Error during grant generation"
New Behavior
No error for new MariaDB grants, better error message in case of unsupported grants.
Merge requirements satisfied?
Commits signed with GPG?
Yes