made tags display closer to v1

pull/11804/head
Brian Coca 9 years ago
parent e2e0dc2719
commit 29bc8f51d7

@ -162,7 +162,7 @@ class PlaybookCLI(CLI):
mytags = set()
if self.options.listtags and play.tags:
mytags = mytags.union(set(play.tags))
msg += '\n tags: [%s]' % (','.join(mytags))
msg += ' TAGS: [%s]' % (','.join(mytags))
if self.options.listhosts:
playhosts = set(inventory.get_hosts(play.hosts))
@ -183,7 +183,7 @@ class PlaybookCLI(CLI):
for task in block.block:
taskmsg += "\n %s" % task
if self.options.listtags and task.tags:
taskmsg += "\n tags: [%s]" % ','.join(mytags.union(set(task.tags)))
taskmsg += " TAGS: [%s]" % ','.join(mytags.union(set(task.tags)))
j = j + 1
self.display.display(taskmsg)

Loading…
Cancel
Save