Merge pull request #2811 from jpmens/ansibledoc

ansible-doc: skip directories (new library/ format)
pull/2812/merge
Michael DeHaan 12 years ago
commit 733bf3bd9f

@ -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', '?'))

Loading…
Cancel
Save