Fix postgres_user not commiting changes when groups is set (#64807)
resolves #64806
This commit is contained in:
parent
a75a79b84c
commit
9ee601288c
1 changed files with 1 additions and 1 deletions
|
@ -852,7 +852,7 @@ def main():
|
||||||
target_roles = []
|
target_roles = []
|
||||||
target_roles.append(user)
|
target_roles.append(user)
|
||||||
pg_membership = PgMembership(module, cursor, groups, target_roles)
|
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)
|
executed_queries.extend(pg_membership.executed_queries)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue