Commit 733bf3bd by Michael DeHaan

Merge pull request #2811 from jpmens/ansibledoc

ansible-doc: skip directories (new library/ format)
parents 3789ac37 2f76bc9e
...@@ -155,6 +155,8 @@ def main(): ...@@ -155,6 +155,8 @@ def main():
continue continue
filename = utils.plugins.module_finder.find_plugin(module) filename = utils.plugins.module_finder.find_plugin(module)
if os.path.isdir(filename):
continue
try: try:
doc, plainexamples = module_docs.get_docstring(filename) doc, plainexamples = module_docs.get_docstring(filename)
desc = tty_ify(doc.get('short_description', '?')) desc = tty_ify(doc.get('short_description', '?'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment