We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d810c60 commit dfd3d91Copy full SHA for dfd3d91
provision-contest/ansible/roles/mysql_replication/templates/setup-replication.sh.j2
@@ -126,9 +126,9 @@ get_field()
126
check_status()
127
{
128
local sql_info="$(printf '%s\n' "$@")"
129
- [ $(get_field 'Seconds_Behind_Master' "$sql_info") = '0' ] || return 1
130
- [ $(get_field 'Slave_SQL_Running' "$sql_info") = 'Yes' ] || return 1
131
- [ $(get_field 'Last_SQL_Errno' "$sql_info") = '0' ] || return 1
+ [ "$(get_field 'Seconds_Behind_Master' "$sql_info")" = '0' ] || return 1
+ [ "$(get_field 'Slave_SQL_Running' "$sql_info")" = 'Yes' ] || return 1
+ [ "$(get_field 'Last_SQL_Errno' "$sql_info")" = '0' ] || return 1
132
return 0
133
}
134
0 commit comments