From 087efe4232d6134851423f592c797d7ff36ab200 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Wed, 6 Jun 2018 10:18:53 -0700 Subject: [PATCH] fix ansible-doc regression from missing plugins (#41167) --- lib/ansible/cli/doc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index cc69f2981f..4b4aa3507a 100644 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -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)