Fix verify for mysqlclient second name MySQLdb

This commit is contained in:
Laurent Indermuehle 2023-01-20 14:00:35 +01:00
parent 14cc5ccbee
commit f59e94ee04
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -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: