mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Avoid multiple blank lines with --syntax-check
Only print a blank line between plays when also doing --list-hosts and/or --list-tasks, otherwise this output just a long list of blank lines, one for each play.
This commit is contained in:
@@ -247,7 +247,8 @@ def main(args):
|
||||
if getattr(task, 'name', None) is not None:
|
||||
# meta tasks have no names
|
||||
print ' %s' % task.name
|
||||
print ''
|
||||
if options.listhosts or options.listtasks:
|
||||
print ''
|
||||
continue
|
||||
|
||||
if options.syntax:
|
||||
|
||||
Reference in New Issue
Block a user