Skip to content
Snippets Groups Projects
Unverified Commit 0b904bca authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman Committed by GitHub
Browse files

Merge pull request #451 from t-woerner/ansible_doc_test_ignore_unhandled

ansible-doc-test: Ignore unhandled paths
parents 8c17d762 d4fbbdfb
No related branches found
No related tags found
No related merge requests found
......@@ -86,8 +86,8 @@ def ansible_doc_test(path, verbose):
if module == "":
module = None
elif len(_path) > 1:
print("The given path '%s' is not valid." % path)
sys.exit(1)
# Ignore other paths
return 0
elif path in ["roles", "roles/"]:
# roles only
......@@ -97,14 +97,14 @@ def ansible_doc_test(path, verbose):
if len(_path) == 1:
module = _path[0]
else:
print("The given path '%s' is not valid." % path)
sys.exit(1)
# Ignore other paths
return 0
elif path in ["plugins", "plugins/",
"plugins/modules", "plugins/modules/"]:
only_modules = True
else:
print("The given path '%s' is not valid." % path)
sys.exit(1)
# Ignore other paths
return 0
errors = 0
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment