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:
parent
d4ffc96c80
commit
4ba7158282
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue