diff --git a/library/junos_jsnapy b/library/junos_jsnapy index d9e35df..8b7f82a 100644 --- a/library/junos_jsnapy +++ b/library/junos_jsnapy @@ -240,7 +240,7 @@ def main(): ) logging.error(msg) dev.close() - module.fail_json(msg=msg, **data) + module.exit_json(msg=msg, **data) except Exception as err: msg = 'Uncaught exception - please report: {0}'.format(str(err))