Please note that Report objects (from the ProblemReport super class) already have that built in. To attach a file and force compression, do
report['FooFile'] = ('/tmp/foo.log', True).
Please see
python -c 'import problem_report; help(problem_report.ProblemReport)'
the "write" method.
Please note that Report objects (from the ProblemReport super class) already have that built in. To attach a file and force compression, do
report['FooFile'] = ('/tmp/foo.log', True).
Please see
python -c 'import problem_report; help(problem_ report. ProblemReport) '
the "write" method.