Make sure we find the .py file when looking for a module to compare docs with

This commit is contained in:
Matt Martz 2016-02-16 15:49:20 -06:00 committed by John Barker
parent 87808797ea
commit cd88cb753c

View file

@ -354,7 +354,7 @@ class ModuleValidator(Validator):
if self._is_new_module(): if self._is_new_module():
return 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_doc, _, _ = get_docstring(existing, verbose=True)
existing_options = existing_doc.get('options', {}) existing_options = existing_doc.get('options', {})