summaryrefslogtreecommitdiff
path: root/database/postgresql/postgresql_ext.py
diff options
context:
space:
mode:
authorJavier Palacios <javier.palacios@feverup.com>2015-11-02 16:43:46 +0000
committerJavier Palacios <javier.palacios@feverup.com>2015-11-02 16:43:46 +0000
commite033e6e6020ef0c033df279488d4160f0aa6f4df (patch)
treedf08cee07cda815465e0b1ec657959b76958d679 /database/postgresql/postgresql_ext.py
parent378bde8729a6cf28666db3b6bb3665939e77489f (diff)
downloadansible-modules-extras-e033e6e6020ef0c033df279488d4160f0aa6f4df.tar.gz
BUGFIX: misnamed function name breaks check mode
Diffstat (limited to 'database/postgresql/postgresql_ext.py')
-rw-r--r--database/postgresql/postgresql_ext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/database/postgresql/postgresql_ext.py b/database/postgresql/postgresql_ext.py
index 07ed48e9..3f4a7458 100644
--- a/database/postgresql/postgresql_ext.py
+++ b/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":