BUGFIX: misnamed function name breaks check mode
This commit is contained in:
parent
378bde8729
commit
e033e6e602
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue