Fix typo in doc_fragments path.

This commit is contained in:
Matt Clay 2019-03-21 13:50:01 -07:00
parent 384f4f1cef
commit ade6977d66
3 changed files with 3 additions and 3 deletions

View file

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

View file

@ -44,7 +44,7 @@ class YamllintTest(SanitySingleVersion):
[i.path for i in targets.include if os.path.splitext(i.path)[1] == '.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]

View file

@ -147,7 +147,7 @@ class YamlChecker(object):
for body_statement in module_ast.body:
if isinstance(body_statement, ast.Assign):
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:
if isinstance(body_statement, ast.ClassDef):
for class_statement in body_statement.body: