mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user