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

resolves #64806
This commit is contained in:
Jonathon Sheffield 2019-11-14 01:39:45 -08:00 committed by Abhijeet Kasurde
parent a75a79b84c
commit 9ee601288c

View file

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