From 8daaa75027c817ec93f22f1dcff6e8e6aab0abc3 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 22 Dec 2015 11:15:34 -0600 Subject: [PATCH] Note that sys.exit should be exit_json or fail_json --- ansible_testing/modules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible_testing/modules.py b/ansible_testing/modules.py index 102b2034157..7e8a546d3f2 100644 --- a/ansible_testing/modules.py +++ b/ansible_testing/modules.py @@ -173,7 +173,8 @@ class ModuleValidator(Validator): def _check_for_sys_exit(self): if 'sys.exit(' in self.text: - self.errors.append('sys.exit() call found') + self.errors.append('sys.exit() call found. Should be ' + 'exit_json/fail_json') def _check_for_gpl3_header(self): if ('GNU General Public License' not in self.text and