Fixing a mistake from tweaking list stuff too much

Use the action only if the task name is not set
pull/13639/head
James Cammarata 9 years ago
parent d4ffc96c80
commit 4ba7158282

@ -187,7 +187,10 @@ class PlaybookCLI(CLI):
if self.options.listtasks: if self.options.listtasks:
cur_tags = list(mytags.union(set(task.tags))) cur_tags = list(mytags.union(set(task.tags)))
cur_tags.sort() 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) taskmsg += "\tTAGS: [%s]\n" % ', '.join(cur_tags)
if self.options.listtags: if self.options.listtags:

Loading…
Cancel
Save