Fix typo in doc_fragments path.

pull/54203/head
Matt Clay 6 years ago
parent 384f4f1cef
commit ade6977d66

@ -585,7 +585,7 @@ class PathMapper(object):
'units': 'all', 'units': 'all',
} }
if path.startswith('lib/ansible/plugins/docs_fragments/'): if path.startswith('lib/ansible/plugins/doc_fragments/'):
return { return {
'sanity': 'all', 'sanity': 'all',
} }

@ -44,7 +44,7 @@ class YamllintTest(SanitySingleVersion):
[i.path for i in targets.include if os.path.splitext(i.path)[1] == '.py' and [i.path for i in targets.include if os.path.splitext(i.path)[1] == '.py' and
os.path.basename(i.path) != '__init__.py' and os.path.basename(i.path) != '__init__.py' and
i.path.startswith('lib/ansible/plugins/docs_fragments/')], i.path.startswith('lib/ansible/plugins/doc_fragments/')],
] ]
paths = [sorted(p) for p in paths if p] paths = [sorted(p) for p in paths if p]

@ -147,7 +147,7 @@ class YamlChecker(object):
for body_statement in module_ast.body: for body_statement in module_ast.body:
if isinstance(body_statement, ast.Assign): if isinstance(body_statement, ast.Assign):
check_assignment(body_statement, module_doc_types) check_assignment(body_statement, module_doc_types)
elif path.startswith('lib/ansible/plugins/docs_fragments/'): elif path.startswith('lib/ansible/plugins/doc_fragments/'):
for body_statement in module_ast.body: for body_statement in module_ast.body:
if isinstance(body_statement, ast.ClassDef): if isinstance(body_statement, ast.ClassDef):
for class_statement in body_statement.body: for class_statement in body_statement.body:

Loading…
Cancel
Save