Revision f105d79d snf-webproject/synnefo/webproject/management/commands/__init__.py

b/snf-webproject/synnefo/webproject/management/commands/__init__.py
268 268

  
269 269
        # Print output
270 270
        output_format = options["output_format"]
271
        headers = headers if options["headers"] else None
271
        if output_format != "json" and not options["headers"]:
272
            headers = None
272 273
        util.pprint_table(self.stdout, table, headers, output_format)
273 274

  
274 275
    def handle_args(self, *args, **kwargs):

Also available in: Unified diff