1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
This commit is contained in:
Ryan Brown 2017-03-16 14:03:42 -04:00 committed by GitHub
parent 4319ddd5de
commit d791665559

View file

@ -624,6 +624,7 @@ class ModuleValidator(Validator):
def _validate_docs(self):
doc_info = self._get_docs()
deprecated = False
if not bool(doc_info['DOCUMENTATION']['value']):
self.errors.append((301, 'No DOCUMENTATION provided'))
else:
@ -658,7 +659,6 @@ class ModuleValidator(Validator):
'with DOCUMENTATION.extends_documentation_fragment')
))
deprecated = False
if self.object_name.startswith('_') and not os.path.islink(self.object_path):
deprecated = True
if 'deprecated' not in doc or not doc.get('deprecated'):