mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Since the module unconditionally issues ALTER statements in order to
observe their effect on the postgres catalog - to determine whether the
privileges have changes - a rollback is thus advisable when in fact
nothing has changed.
fix #885
(cherry picked from commit 2b3c8f4582)
Co-authored-by: Georg Sauthoff <mail@georg.so>
This commit is contained in:
@@ -1102,7 +1102,7 @@ def main():
|
||||
conn.rollback()
|
||||
module.fail_json(msg=to_native(e.message))
|
||||
|
||||
if module.check_mode:
|
||||
if module.check_mode or not changed:
|
||||
conn.rollback()
|
||||
else:
|
||||
conn.commit()
|
||||
|
||||
Reference in New Issue
Block a user