some fixes

This commit is contained in:
Tomas 2024-02-22 00:56:58 +02:00
parent aed8620367
commit 59598906fa
2 changed files with 6 additions and 7 deletions

View file

@ -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: