mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-06 10:40:36 -07:00
spelling
This commit is contained in:
parent
970897cc46
commit
7036490e7e
1 changed files with 1 additions and 1 deletions
|
@ -850,7 +850,7 @@ def get_resource_limits(module, cursor, user, host):
|
||||||
current_limits['MAX_STATEMENT_TIME'] = res[4]
|
current_limits['MAX_STATEMENT_TIME'] = res[4]
|
||||||
|
|
||||||
# I'm not sure this is useful. Maybe fetchone() always return a
|
# I'm not sure this is useful. Maybe fetchone() always return a
|
||||||
# tuple? But I go so many KeyError 0 errors that I haded this.
|
# tuple? But I got so many KeyError 0 that I added this to fix the issue.
|
||||||
if isinstance(res, dict):
|
if isinstance(res, dict):
|
||||||
current_limits = {
|
current_limits = {
|
||||||
'MAX_QUERIES_PER_HOUR': res.get('MAX_QUERIES_PER_HOUR'),
|
'MAX_QUERIES_PER_HOUR': res.get('MAX_QUERIES_PER_HOUR'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue