mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-08 19:50:31 -07:00
Fix variable overwrite
This commit is contained in:
parent
ad55918eaf
commit
3aed674194
1 changed files with 5 additions and 9 deletions
|
@ -159,13 +159,13 @@
|
||||||
<<: *mysql_params
|
<<: *mysql_params
|
||||||
variable: max_connect_errors
|
variable: max_connect_errors
|
||||||
value: -1
|
value: -1
|
||||||
register: result
|
register: oor_result
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- include: assert_var.yml changed=true output={{ result }} var_name=max_connect_errors var_value=1
|
- include: assert_var.yml changed=true output={{ oor_result }} var_name=max_connect_errors var_value=1
|
||||||
when: pymysql_version.stdout == ""
|
when: pymysql_version.stdout == ""
|
||||||
|
|
||||||
- include: assert_fail_msg.yml output={{ result }} msg='Truncated incorrect'
|
- include: assert_fail_msg.yml output={{ oor_result }} msg='Truncated incorrect'
|
||||||
when: pymysql_version.stdout != ""
|
when: pymysql_version.stdout != ""
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
|
@ -176,14 +176,10 @@
|
||||||
<<: *mysql_params
|
<<: *mysql_params
|
||||||
variable: max_connect_errors
|
variable: max_connect_errors
|
||||||
value: TEST
|
value: TEST
|
||||||
register: result
|
register: nvv_result
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- include: assert_var.yml changed=true output={{ result }} var_name=max_connect_errors var_value=1
|
- include: assert_fail_msg.yml output={{ nvv_result }} msg='Incorrect argument type to variable'
|
||||||
when: pymysql_version.stdout == ""
|
|
||||||
|
|
||||||
- include: assert_fail_msg.yml output={{ result }} msg='Incorrect argument type to variable'
|
|
||||||
when: pymysql_version.stdout != ""
|
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# Verify mysql_variable fails when setting an unknown variable
|
# Verify mysql_variable fails when setting an unknown variable
|
||||||
|
|
Loading…
Add table
Reference in a new issue