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:
parent
f614806d1f
commit
21c2a8234a
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue