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:
Brian Coca
2019-01-23 20:03:47 -05:00
committed by GitHub
parent 4041f02389
commit 96b3ef5553
106 changed files with 51 additions and 31 deletions

View File

@@ -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/'
]

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/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: