mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Doc fragments to plugins (#50172)
* promote doc_fragments into actual plugins change tests hardcoded path to doc fragments avoid sanity in fragments avoid improper testing of doc_fragments also change runner paths fix botmeta updated comment for fragments updated docs
This commit is contained in:
@@ -30,7 +30,7 @@ def main():
|
||||
'lib/ansible/modules/network/panos/',
|
||||
'lib/ansible/modules/network/vyos/',
|
||||
'lib/ansible/modules/windows/',
|
||||
'lib/ansible/utils/module_docs_fragments/',
|
||||
'lib/ansible/plugins/doc_fragments/',
|
||||
'test/'
|
||||
]
|
||||
|
||||
|
||||
@@ -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/utils/module_docs_fragments/'):
|
||||
elif path.startswith('lib/ansible/plugins/docs_fragments/'):
|
||||
for body_statement in module_ast.body:
|
||||
if isinstance(body_statement, ast.ClassDef):
|
||||
for class_statement in body_statement.body:
|
||||
|
||||
Reference in New Issue
Block a user