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.
parent 8e0af04c
...@@ -247,6 +247,7 @@ def main(args): ...@@ -247,6 +247,7 @@ def main(args):
if getattr(task, 'name', None) is not None: if getattr(task, 'name', None) is not None:
# meta tasks have no names # meta tasks have no names
print ' %s' % task.name print ' %s' % task.name
if options.listhosts or options.listtasks:
print '' print ''
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment