aboutsummaryrefslogtreecommitdiffstats
path: root/lib/srtgui/reports.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/srtgui/reports.py')
-rw-r--r--lib/srtgui/reports.py17
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/srtgui/reports.py b/lib/srtgui/reports.py
index 297b885a..572e45bf 100644
--- a/lib/srtgui/reports.py
+++ b/lib/srtgui/reports.py
@@ -824,7 +824,7 @@ class CvesReport(Report):
'%s %s' % (cve.cvssV3_baseScore,cve.cvssV3_baseSeverity),
cve.get_publish_text,
vulnerability.name if vulnerability else '<no_vulnerability>',
- investigation.name if investigation else '',
+ investigation.name if investigation else '<no_investigation>',
investigation.product.long_name if investigation and investigation.product else '<no_product>',
investigation.get_priority_text if investigation else '',
investigation.get_status_text if investigation else '',
@@ -836,24 +836,19 @@ class CvesReport(Report):
])
else:
writer.writerow([
- cve.name,
cve.get_status_text,
- '%s %s' % (cve.recommend,cve.recommend_list),
- cve.cve_data_type,
- cve.cve_data_format,
- cve.cve_data_version,
'%s %s' % (cve.cvssV3_baseScore,cve.cvssV3_baseSeverity),
- '%s %s' % (cve.cvssV2_baseScore,cve.cvssV2_severity),
cve.get_publish_text,
- vulnerability.name if vulnerability else '',
- investigation.name if investigation else '',
+ vulnerability.name if vulnerability else '<no_vulnerability>',
+ investigation.name if investigation else '<no_investigation>',
+ investigation.product.long_name if investigation and investigation.product else '<no_product>',
investigation.get_priority_text if investigation else '',
investigation.get_status_text if investigation else '',
investigation.get_outcome_text if investigation else '',
- defect.name if defect else '',
+ defect.name if defect else '<no_defect>',
defect.get_priority_text if defect else '',
defect.get_status_text if defect else '',
- defect.get_outcome_text if defect else '',
+ defect.get_resolution_text if defect else '',
])
def exec_report(self, *args, **kwargs):