1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

BUGFIX: misnamed function name breaks check mode

This commit is contained in:
Javier Palacios 2015-11-02 16:43:46 +00:00 committed by Matt Clay
parent 86bea2d6ab
commit 185761bfcb

View file

@ -165,9 +165,9 @@ def main():
try: try:
if module.check_mode: if module.check_mode:
if state == "absent": if state == "absent":
changed = not db_exists(cursor, ext) changed = not ext_exists(cursor, ext)
elif state == "present": elif state == "present":
changed = db_exists(cursor, ext) changed = ext_exists(cursor, ext)
module.exit_json(changed=changed,ext=ext) module.exit_json(changed=changed,ext=ext)
if state == "absent": if state == "absent":