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

* fixed incomplete refactor of instance-level plugin list var
pull/4420/head
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
1 changed files with 2 additions and 2 deletions

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