mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-18 16:31:26 -07:00
make integration tests work
This commit is contained in:
parent
778fbd497c
commit
23db3f42b1
4 changed files with 120 additions and 25 deletions
|
@ -974,12 +974,9 @@ def set_password_expire(cursor, user, host, password_expire, password_expire_int
|
|||
statment = "PASSWORD EXPIRE INTERVAL %d DAY" % (password_expire_interval)
|
||||
elif password_expire.lower() == "now":
|
||||
statment = "PASSWORD EXPIRE"
|
||||
if host:
|
||||
params = (user, host)
|
||||
query = ["ALTER USER %s@%s"]
|
||||
else:
|
||||
params = (user,)
|
||||
query = ["ALTER USER %s"]
|
||||
|
||||
params = (user, host)
|
||||
query = ["ALTER USER %s@%s"]
|
||||
|
||||
query.append(statment)
|
||||
query = ' '.join(query)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue