fix truncated list functions in ansible-doc (#41281)

* fixed incomplete refactor of instance-level plugin list var

(cherry picked from commit 25ab2a8153)
pull/41306/head
Matt Davis 6 years ago committed by Matt Clay
parent 2e7c09e967
commit c77bcdf3a7

@ -118,7 +118,7 @@ class DocCLI(CLI):
if self.options.list_files: if self.options.list_files:
paths = loader._get_paths() paths = loader._get_paths()
for path in paths: for path in paths:
self.plugin_list = self.find_plugins(path, plugin_type) self.plugin_list.update(self.find_plugins(path, plugin_type))
list_text = self.get_plugin_list_filenames(loader) list_text = self.get_plugin_list_filenames(loader)
self.pager(list_text) self.pager(list_text)
@ -128,7 +128,7 @@ class DocCLI(CLI):
if self.options.list_dir: if self.options.list_dir:
paths = loader._get_paths() paths = loader._get_paths()
for path in paths: for path in paths:
self.plugin_list = self.find_plugins(path, plugin_type) self.plugin_list.update(self.find_plugins(path, plugin_type))
self.pager(self.get_plugin_list_text(loader)) self.pager(self.get_plugin_list_text(loader))
return 0 return 0

Loading…
Cancel
Save