-
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_user: Adding statements output #75
Comments
@steveteahan thanks for the feature idea! I took a quick look at the pre-pr. |
Thank you, @Andersson007. To respond to your feedback:
I'll finish up my changes, get the docs and tests in order, and then submit a PR. |
@steveteahan cool, thanks:) Don't forget about a changelog fragment ( |
…plugin_hash_string and plugin_auth_string (ansible-collections#75)
SUMMARY
Adding a statements list to the output of mysql_user could make the module more transparent and easier to debug. Ideally, users would be able to run in check mode and see exactly which statements would be executed to get to the desired state.
ISSUE TYPE
COMPONENT NAME
mysql_user
ADDITIONAL INFORMATION
The mysql_user module currently returns changed, user, and msg. This proposal would add statements to include the SQL statements associated with the actual user or permission changes. An example of the proposed output may be seen below:
An initial version (not ready for PR) can be seen here: steveteahan@245f5f7
Providing the output of the SQL statements is something that the postgresql collection is doing today:
In that collection, they call it queries which I think is acceptable is well, it just seemed the statements was possibly more accurate.
Looking for some initial feedback about whether the maintainers are open to this change, or if it was already considered and avoided. Some other general thoughts about this:
cursor.execute
, but it's possible it wouldn't be that easy.The text was updated successfully, but these errors were encountered: