Merge pull request #1192 from Feverup/bugfix/pg_ext_check

BUGFIX: misnamed function name breaks check mode
reviewable/pr18780/r1
Brian Coca 9 years ago
commit 7f5c6b2121

@ -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":

Loading…
Cancel
Save