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

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

* fixed incomplete refactor of instance-level plugin list var
This commit is contained in:
Matt Davis 2018-06-07 15:07:21 -07:00 committed by GitHub
parent 9f84c09bf3
commit 25ab2a8153
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,7 @@ class DocCLI(CLI):
if self.options.list_files:
paths = loader._get_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)
self.pager(list_text)
@ -128,7 +128,7 @@ class DocCLI(CLI):
if self.options.list_dir:
paths = loader._get_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))
return 0