From d488bd57ccbfdbb02963cdd32aab426554d759a6 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 30 Jun 2015 13:51:37 -0500 Subject: [PATCH] Don't check docs only files for a proper interpreter line --- 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 77e8ad28c7..56eaefc580 100644 --- a/ansible_testing/modules.py +++ b/ansible_testing/modules.py @@ -310,7 +310,8 @@ class ModuleValidator(Validator): self._find_ps_docs_py_file() self._check_for_gpl3_header() - self._check_interpreter(powershell=self._powershell_module()) + if not self._just_docs(): + self._check_interpreter(powershell=self._powershell_module()) class PythonPackageValidator(Validator):