mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-23 19:01:28 -07:00
Fix verify for mysqlclient second name MySQLdb
This commit is contained in:
parent
14cc5ccbee
commit
f59e94ee04
1 changed files with 11 additions and 1 deletions
|
@ -23,11 +23,21 @@
|
|||
{{ primary_info.version.major }}.{{ primary_info.version.minor }}
|
||||
== {{ db_version }}
|
||||
|
||||
- name: Assert that mysql_info module used the expected connector
|
||||
- name: Assert that mysql_info module used the expected version of pymysql
|
||||
assert:
|
||||
that:
|
||||
- primary_info.connector.name == connector_name
|
||||
- primary_info.connector.version == connector_ver
|
||||
when:
|
||||
- connector_name == 'pymysql'
|
||||
|
||||
- name: Assert that mysql_info module used the expected version of mysqlclient
|
||||
assert:
|
||||
that:
|
||||
- primary_info.connector.name == 'MySQLdb'
|
||||
- primary_info.connector.version == connector_ver
|
||||
when:
|
||||
- connector_name == 'mysqlclient'
|
||||
|
||||
- name: Display the python version in use
|
||||
command:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue