Skip to content

Commit

Permalink
tool: faster "poni list" by skipping an unnecessary call
Browse files Browse the repository at this point in the history
  • Loading branch information
Mika Eloranta committed Apr 10, 2014
1 parent 077f028 commit 05cc461
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion poni/tool.py
Expand Up @@ -1262,7 +1262,8 @@ def handle_list(self, arg):
confman = self.get_confman(arg.root_dir, reset_cache=False)

manager = self.get_manager(confman)
self.collect_all(manager) # TODO: needed by "list -C"
if arg.show_controls:
self.collect_all(manager)

list_output = listout.ListOutput(self, confman, **arg.__dict__)
for output in list_output.output():
Expand Down

0 comments on commit 05cc461

Please sign in to comment.