fix validate-module sanity error per https://app.shippable.com/github/ansible/ansible/runs/16493/1/console (#22711)
This commit is contained in:
parent
4319ddd5de
commit
d791665559
1 changed files with 1 additions and 1 deletions
|
@ -624,6 +624,7 @@ class ModuleValidator(Validator):
|
||||||
|
|
||||||
def _validate_docs(self):
|
def _validate_docs(self):
|
||||||
doc_info = self._get_docs()
|
doc_info = self._get_docs()
|
||||||
|
deprecated = False
|
||||||
if not bool(doc_info['DOCUMENTATION']['value']):
|
if not bool(doc_info['DOCUMENTATION']['value']):
|
||||||
self.errors.append((301, 'No DOCUMENTATION provided'))
|
self.errors.append((301, 'No DOCUMENTATION provided'))
|
||||||
else:
|
else:
|
||||||
|
@ -658,7 +659,6 @@ class ModuleValidator(Validator):
|
||||||
'with DOCUMENTATION.extends_documentation_fragment')
|
'with DOCUMENTATION.extends_documentation_fragment')
|
||||||
))
|
))
|
||||||
|
|
||||||
deprecated = False
|
|
||||||
if self.object_name.startswith('_') and not os.path.islink(self.object_path):
|
if self.object_name.startswith('_') and not os.path.islink(self.object_path):
|
||||||
deprecated = True
|
deprecated = True
|
||||||
if 'deprecated' not in doc or not doc.get('deprecated'):
|
if 'deprecated' not in doc or not doc.get('deprecated'):
|
||||||
|
|
Loading…
Reference in a new issue