mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix Postgres user module always reporting changes (#23488)
This commit is contained in:
parent
3b5dd4e0a0
commit
54316f7da0
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ def user_alter(cursor, module, user, password, role_attr_flags, encrypted, expir
|
|||
# Do we actually need to do anything?
|
||||
pwchanging = False
|
||||
if password is not None:
|
||||
if encrypted:
|
||||
if encrypted == 'ENCRYPTED':
|
||||
if password.startswith('md5'):
|
||||
if password != current_role_attrs['rolpassword']:
|
||||
pwchanging = True
|
||||
|
|
Loading…
Reference in a new issue