Fix HTMLify CLI

The facility to HTMLify a file from the command line has been
broken since the severity filter was added.  This gets it working
again.

Change-Id: I3cb0894014bfbf0e376b8bb60c8da738d93aaffb
This commit is contained in:
James E. Blair 2018-07-30 16:31:32 -07:00 committed by Clark Boylan
parent f614806d1f
commit 21c2a8234a
2 changed files with 4 additions and 2 deletions

View File

@ -182,7 +182,9 @@ class NoFilter(object):
def __iter__(self):
for line in self.file_generator:
yield Line(line)
l = Line(line)
l.status = "NONE"
yield l
def get_filter_generator(file_generator, environ, root_path, config):

View File

@ -27,7 +27,7 @@ import os_loganalyze.view as osview
def htmlify_stdin():
out = sys.stdout
gen = osview.HTMLView(fileinput.FileInput())
gen = osview.HTMLView(osfilter.NoFilter(fileinput.FileInput()))
for line in gen:
out.write(line)