From cd88cb753c5c1eaf654a43177e009a1d62449e33 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 16 Feb 2016 15:49:20 -0600 Subject: [PATCH] Make sure we find the .py file when looking for a module to compare docs with --- ansible_testing/modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_testing/modules.py b/ansible_testing/modules.py index 01e508bcf5..469fad8f5d 100644 --- a/ansible_testing/modules.py +++ b/ansible_testing/modules.py @@ -354,7 +354,7 @@ class ModuleValidator(Validator): if self._is_new_module(): return - existing = module_loader.find_plugin(self.name) + existing = module_loader.find_plugin(self.name, mod_type='.py') existing_doc, _, _ = get_docstring(existing, verbose=True) existing_options = existing_doc.get('options', {})