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

fix ansible-doc listing with new docstring

fixes #10295
This commit is contained in:
Brian Coca 2015-03-04 09:39:06 -05:00
parent ffb281d96c
commit 4805fa6b0b

View file

@ -197,7 +197,7 @@ def get_module_list_text(module_list):
continue continue
try: try:
doc, plainexamples = module_docs.get_docstring(filename) doc, plainexamples, returndocs = module_docs.get_docstring(filename)
desc = tty_ify(doc.get('short_description', '?')).strip() desc = tty_ify(doc.get('short_description', '?')).strip()
if len(desc) > linelimit: if len(desc) > linelimit:
desc = desc[:linelimit] + '...' desc = desc[:linelimit] + '...'