Skip to content

Commit 54e8035

Browse files
committed
Update default_reimporter.py
1 parent ba6e983 commit 54e8035

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

dojo/importers/default_reimporter.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,7 @@ def process_matched_mitigated_finding(
481481
"""
482482
if existing_finding.fix_available != unsaved_finding.fix_available:
483483
existing_finding.fix_available = unsaved_finding.fix_available
484-
if existing_finding.fix_version != unsaved_finding.fix_version:
485-
existing_finding.fix_version = unsaved_finding.fix_version
484+
existing_finding.fix_version = unsaved_finding.fix_version
486485

487486
# if the reimported item has a mitigation time, we can compare
488487
if unsaved_finding.is_mitigated:
@@ -595,8 +594,7 @@ def process_matched_active_finding(
595594
logger.debug("Reimported item matches a finding that is currently open.")
596595
if existing_finding.fix_available != unsaved_finding.fix_available:
597596
existing_finding.fix_available = unsaved_finding.fix_available
598-
if existing_finding.fix_version != unsaved_finding.fix_version:
599-
existing_finding.fix_version = unsaved_finding.fix_version
597+
existing_finding.fix_version = unsaved_finding.fix_version
600598
if unsaved_finding.is_mitigated:
601599
logger.debug("Reimported mitigated item matches a finding that is currently open, closing.")
602600
# TODO: Implement a date comparison for opened defectdojo findings before closing them by reimporting,

0 commit comments

Comments
 (0)