Merge pull request #2811 from jpmens/ansibledoc
ansible-doc: skip directories (new library/ format)
This commit is contained in:
commit
733bf3bd9f
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue