Fix postgres_user not commiting changes when groups is set (#64835)

pull/65015/head^2
Andrey Klychkov 5 years ago committed by Matt Davis
parent 9e023a91a6
commit 7b18723858

@ -0,0 +1,2 @@
bugfixes:
- postgresql_user - fix the module doesn't correctly commit changes if groups is set (https://github.com/ansible/ansible/issues/64806).

@ -940,7 +940,7 @@ def main():
target_roles = []
target_roles.append(user)
pg_membership = PgMembership(module, cursor, target_roles, groups)
changed = pg_membership.grant()
changed = pg_membership.grant() or changed
else:
if user_exists(cursor, user):

Loading…
Cancel
Save