Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-indermuehle committed Oct 10, 2023
1 parent e9a77a0 commit 59854e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ def get_resource_limits(module, cursor, user, host):
current_limits['MAX_STATEMENT_TIME'] = res[4]

# 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):
current_limits = {
'MAX_QUERIES_PER_HOUR': res.get('MAX_QUERIES_PER_HOUR'),
Expand Down

0 comments on commit 59854e8

Please sign in to comment.