mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-21 18:01:28 -07:00
some fixes
This commit is contained in:
parent
aed8620367
commit
59598906fa
2 changed files with 6 additions and 7 deletions
|
@ -337,11 +337,10 @@ def user_mod(cursor, user, host, host_all, password, encrypted,
|
|||
|
||||
update = True
|
||||
|
||||
if module.check_mode:
|
||||
return {'changed': True, 'msg': msg, 'password_changed': password_changed}
|
||||
set_password_expire(cursor, user, host, password_expire, password_expire_interval)
|
||||
password_changed = True
|
||||
changed = True
|
||||
if not module.check_mode:
|
||||
set_password_expire(cursor, user, host, password_expire, password_expire_interval)
|
||||
password_changed = True
|
||||
changed = True
|
||||
|
||||
# Handle plugin authentication
|
||||
if plugin and not role:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue