Fixing a mistake from tweaking list stuff too much

Use the action only if the task name is not set
This commit is contained in:
James Cammarata 2015-12-17 16:33:23 -05:00
parent d4ffc96c80
commit 4ba7158282

View file

@ -187,7 +187,10 @@ class PlaybookCLI(CLI):
if self.options.listtasks:
cur_tags = list(mytags.union(set(task.tags)))
cur_tags.sort()
taskmsg += " %s" % task.action
if task.name:
taskmsg += " %s" % task.get_name()
else:
taskmsg += " %s" % task.action
taskmsg += "\tTAGS: [%s]\n" % ', '.join(cur_tags)
if self.options.listtags: