Skip to content

Commit

Permalink
fix truncated list functions in ansible-doc (ansible#41281)
Browse files Browse the repository at this point in the history
* fixed incomplete refactor of instance-level plugin list var
  • Loading branch information
nitzmahone authored Jun 7, 2018
1 parent 9f84c09 commit 25ab2a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/cli/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def run(self):
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)
Expand All @@ -128,7 +128,7 @@ def run(self):
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
Expand Down

0 comments on commit 25ab2a8

Please sign in to comment.