mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-19 17:01:26 -07:00
Fix function signature
This commit is contained in:
parent
bb45038ce7
commit
8f337edbe9
1 changed files with 1 additions and 2 deletions
|
@ -431,7 +431,7 @@ def supports_identified_by_password(cursor):
|
||||||
return LooseVersion(version_str) < LooseVersion('8')
|
return LooseVersion(version_str) < LooseVersion('8')
|
||||||
|
|
||||||
|
|
||||||
def validate_account_locking(cursor, account_locking):
|
def validate_account_locking(cursor, account_locking, module):
|
||||||
cursor.execute("SELECT VERSION()")
|
cursor.execute("SELECT VERSION()")
|
||||||
result = cursor.fetchone()
|
result = cursor.fetchone()
|
||||||
version_str = result[0]
|
version_str = result[0]
|
||||||
|
@ -447,7 +447,6 @@ def validate_account_locking(cursor, account_locking):
|
||||||
module.warn("MySQL is too old to support this manner of account locking.")
|
module.warn("MySQL is too old to support this manner of account locking.")
|
||||||
module.warn("Account locking settings are being ignored.")
|
module.warn("Account locking settings are being ignored.")
|
||||||
else:
|
else:
|
||||||
msg = None
|
|
||||||
if account_locking is not None:
|
if account_locking is not None:
|
||||||
locking = {
|
locking = {
|
||||||
"FAILED_LOGIN_ATTEMPTS": str(account_locking.get("FAILED_LOGIN_ATTEMPTS", 0)),
|
"FAILED_LOGIN_ATTEMPTS": str(account_locking.get("FAILED_LOGIN_ATTEMPTS", 0)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue