Skip to content

Commit

Permalink
Fix Postgres user module always reporting changes (ansible#23488)
Browse files Browse the repository at this point in the history
  • Loading branch information
acasademont authored and ansibot committed Apr 11, 2017
1 parent 3b5dd4e commit 54316f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/database/postgresql/postgresql_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54316f7

Please sign in to comment.