1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

ansible-doc: skip directories (new library/ format)

This commit is contained in:
Jan-Piet Mens 2013-04-30 08:31:39 +02:00
parent 3789ac3784
commit 2f76bc9e47

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