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

This commit is contained in:
Matt Davis 2018-06-06 10:18:53 -07:00 committed by GitHub
parent 2be2a572d6
commit 087efe4232
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,7 +156,10 @@ class DocCLI(CLI):
# process command line list
text = ''
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:
self.pager(text)