From 185761bfcb8a004757fbcf0cfc55402ce3d2ce44 Mon Sep 17 00:00:00 2001 From: Javier Palacios Date: Mon, 2 Nov 2015 16:43:46 +0000 Subject: [PATCH] BUGFIX: misnamed function name breaks check mode --- .../modules/extras/database/postgresql/postgresql_ext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/database/postgresql/postgresql_ext.py b/lib/ansible/modules/extras/database/postgresql/postgresql_ext.py index d70107a4cf9..e8a30534841 100644 --- a/lib/ansible/modules/extras/database/postgresql/postgresql_ext.py +++ b/lib/ansible/modules/extras/database/postgresql/postgresql_ext.py @@ -165,9 +165,9 @@ def main(): try: if module.check_mode: if state == "absent": - changed = not db_exists(cursor, ext) + changed = not ext_exists(cursor, ext) elif state == "present": - changed = db_exists(cursor, ext) + changed = ext_exists(cursor, ext) module.exit_json(changed=changed,ext=ext) if state == "absent":