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:
parent
3789ac3784
commit
2f76bc9e47
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