mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-10 04:30:38 -07:00
Update plugins/module_utils/user.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
This commit is contained in:
parent
40e43ac76a
commit
c415325901
1 changed files with 4 additions and 4 deletions
|
@ -966,13 +966,13 @@ def set_password_expire(cursor, user, host, password_expire, password_expire_int
|
|||
password_expire_days (int): Invterval of days password expires.
|
||||
"""
|
||||
if password_expire.lower() == "never":
|
||||
statment = "PASSWORD EXPIRE NEVER"
|
||||
statement = "PASSWORD EXPIRE NEVER"
|
||||
elif password_expire.lower() == "default":
|
||||
statment = "PASSWORD EXPIRE DEFAULT"
|
||||
statement = "PASSWORD EXPIRE DEFAULT"
|
||||
elif password_expire.lower() == "interval":
|
||||
statment = "PASSWORD EXPIRE INTERVAL %d DAY" % (password_expire_interval)
|
||||
statement = "PASSWORD EXPIRE INTERVAL %d DAY" % (password_expire_interval)
|
||||
elif password_expire.lower() == "now":
|
||||
statment = "PASSWORD EXPIRE"
|
||||
statement = "PASSWORD EXPIRE"
|
||||
|
||||
params = (user, host)
|
||||
query = ["ALTER USER %s@%s"]
|
||||
|
|
Loading…
Add table
Reference in a new issue