mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-19 17:01:26 -07:00
Add connector information to the returned values
I need to know what python library was used. I had a container with both mysqlclient and pymysql installed and tests used a different connector that what is advertised by the title of integration tests. We need to prevent that otherwise our tests are worth nothing.
This commit is contained in:
parent
454778406d
commit
b24249d39a
2 changed files with 19 additions and 3 deletions
|
@ -34,6 +34,11 @@ mysql_driver_fail_msg = ('A MySQL module is required: for Python 2.7 either PyMy
|
|||
'Consider setting ansible_python_interpreter to use '
|
||||
'the intended Python version.')
|
||||
|
||||
mysql_driver_info = {
|
||||
"name": mysql_driver.__name__,
|
||||
"version": mysql_driver.__version__
|
||||
}
|
||||
|
||||
|
||||
def parse_from_mysql_config_file(cnf):
|
||||
# Default values of comment_prefix is '#' and ';'.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue