Merge pull request #8721 from sergevanginderachter/syntax_check_avoid_blank_output

Avoid multiple blank lines with --syntax-check
This commit is contained in:
James Cammarata 2014-08-22 10:46:45 -05:00
commit 32a5c2bf48

View file

@ -247,7 +247,8 @@ 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
print '' if options.listhosts or options.listtasks:
print ''
continue continue
if options.syntax: if options.syntax: