Fix assertion by not running on failing connectors

This commit is contained in:
Laurent Indermuehle 2022-08-12 13:48:44 +02:00
commit fa06f22cd5
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -207,16 +207,13 @@
fail_on_error: true fail_on_error: true
register: result register: result
# Task is changed with mysqlclient 2.0.1 and pymysql 0.9.3
- assert: - assert:
that: that:
- result is not changed - result is not changed
when: when:
- > - connector_name is search('pymysql')
connector_name is not search('pymysql') - connector_ver is version('0.9.3', '<=')
or (
connector_name is search('pymysql')
and connector_ver is version('0.9.3', '<=')
)
# Test stopreplica mode: # Test stopreplica mode:
- name: Stop replica using deprecated stopslave choice - name: Stop replica using deprecated stopslave choice
@ -240,13 +237,10 @@
fail_on_error: true fail_on_error: true
register: result register: result
# Task is changed with mysqlclient 2.0.1 and pymysql 0.9.3
- assert: - assert:
that: that:
- result is not changed - result is not changed
when: when:
- > - connector_name is search('pymysql')
connector_name is not search('pymysql') - connector_ver is version('0.9.3', '<=')
or (
connector_name is search('pymysql')
and connector_ver is version('0.9.3', '<=')
)