fix ansible-doc regression from missing plugins (#41167)

(cherry picked from commit 087efe4232)
pull/41306/head
Matt Davis 7 years ago committed by Matt Clay
parent 5417a373bc
commit c5484e845a

@ -0,0 +1,2 @@
bugfixes:
- ansible-doc - fixed traceback on missing plugins (https://github.com/ansible/ansible/pull/41167)

@ -156,7 +156,10 @@ class DocCLI(CLI):
# process command line list # process command line list
text = '' text = ''
for plugin in self.args: for plugin in self.args:
text += self.format_plugin_doc(plugin, loader, plugin_type, search_paths) textret = self.format_plugin_doc(plugin, loader, plugin_type, search_paths)
if textret:
text += textret
if text: if text:
self.pager(text) self.pager(text)

Loading…
Cancel
Save