-
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
mysql_info: Add parameter for __collect method #136
mysql_info: Add parameter for __collect method #136
Conversation
Add parameter for `__collect` method By default the class `MySQL_Info` get all MySQL instance information, add parameter for `__collect` to get only what wants to know(information) Feature Pull Request lib/ansible/modules/database/mysql/mysql_info.py
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.
@lyvivian0077 hi, nice optimization! thanks
LGTM
shipit
@lyvivian0077 let's wait a bit, maybe anybody else will want to review it. |
Sensible optimisation to me, big fan of pulling only what's needed. shipit |
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.
oh, @lyvivian0077 we need a changelog fragment https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#changelogs.
|
- bugfixes: - mysql_info - add parameter for __collect to get only what are wanted (ansible-collections#136).
@Andersson007 |
@lyvivian0077 merged, thanks for the PR! |
@Xyon thanks for reviewing! |
SUMMARY
Add parameter for
__collect
methodBy default the class
MySQL_Info
get all MySQL instance information,add parameter for
__collect
to get only what wants to know(information)ISSUE TYPE
Feature Pull Request
COMPONENT NAME
lib/ansible/modules/database/mysql/mysql_info.py