mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07: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:
parent
d4ffc96c80
commit
4ba7158282
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue