From 884435a1aacaa55846b5b9ee6a26bd074be8fc95 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 28 Jul 2015 22:14:41 -0400 Subject: [PATCH] minor cosmetic changes to list options --- lib/ansible/cli/playbook.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/ansible/cli/playbook.py b/lib/ansible/cli/playbook.py index 2661b8bd1f0..f4d7d87e0c2 100644 --- a/lib/ansible/cli/playbook.py +++ b/lib/ansible/cli/playbook.py @@ -150,7 +150,7 @@ class PlaybookCLI(CLI): if isinstance(results, list): for p in results: - self.display.display('\nplaybook: %s\n' % p['playbook']) + self.display.display('\nplaybook: %s' % p['playbook']) i = 1 for play in p['plays']: if play.name: @@ -161,7 +161,6 @@ class PlaybookCLI(CLI): msg = "\n PLAY: %s" % (playname) if self.options.listtags: mytags = set(play.tags) - msg += '\n total tags: %d' % (len(mytags)) msg += '\n tags: [%s]' % (','.join(mytags)) if self.options.listhosts: @@ -175,15 +174,12 @@ class PlaybookCLI(CLI): if self.options.listtags or self.options.listtasks: j = 1 taskmsg = ' tasks:' + for task in play.get_tasks(): taskmsg += "\n %s" % task - if self.options.listtags: pass - #for task in play.get_tasks(): - # mytags.union(set(task.tags)) - #self.display.display(" %s" % ','.join(mytags)) - + #taskmsg += " %s" % ','.join(mytags.union(set(task.tags))) #FIXME: find out how to get task tags j = j + 1 self.display.display(taskmsg)