Skip to content

Commit aedd01c

Browse files
authored
Make SOLID version optional in python
1 parent 3a04bed commit aedd01c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

shortform_report-main/OcpReportLib.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def add_audit(
200200
date: str,
201201
report_ver: str,
202202
scope_number: int,
203-
solid_ver: str,
203+
solid_ver: str = None,
204204
cvss_ver: str = "3.1",
205205
) -> None:
206206
"""Add metadata that describes the scope of the security review.
@@ -381,12 +381,14 @@ def _convert_to_corim_structure(self) -> Dict[str, Any]:
381381
2: completion_timestamp, # completion-date
382382
3: self.report["audit"]["scope_number"], # scope-number
383383
4: fw_identifiers, # fw-identifiers
384-
6: self.report["audit"]["solid_ver"], # solid-version
385384
}
386385

387386
if corim_issues:
388387
sfr_map[5] = corim_issues # issues
389388

389+
if self.report["audit"]["solid_ver"]:
390+
sfr_map[6] = self.report["audit"]["solid_ver"] # solid-version
391+
390392
return sfr_map
391393

392394
def _build_class_map(self) -> dict:

0 commit comments

Comments
 (0)