mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Note that sys.exit should be exit_json or fail_json
This commit is contained in:
@@ -173,7 +173,8 @@ class ModuleValidator(Validator):
|
|||||||
|
|
||||||
def _check_for_sys_exit(self):
|
def _check_for_sys_exit(self):
|
||||||
if 'sys.exit(' in self.text:
|
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):
|
def _check_for_gpl3_header(self):
|
||||||
if ('GNU General Public License' not in self.text and
|
if ('GNU General Public License' not in self.text and
|
||||||
|
|||||||
Reference in New Issue
Block a user