Merge pull request #2811 from jpmens/ansibledoc

ansible-doc: skip directories (new library/ format)
This commit is contained in:
Michael DeHaan 2013-04-30 05:10:10 -07:00
commit 733bf3bd9f

View file

@ -155,6 +155,8 @@ def main():
continue
filename = utils.plugins.module_finder.find_plugin(module)
if os.path.isdir(filename):
continue
try:
doc, plainexamples = module_docs.get_docstring(filename)
desc = tty_ify(doc.get('short_description', '?'))