File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -504,8 +504,12 @@ def process_matched_mitigated_finding(
504504 # restart the sla start date to the current date, finding.save() will set new sla_expiration_date
505505 existing_finding .sla_start_date = self .now
506506 existing_finding = self .process_cve (existing_finding )
507+ if existing_finding .get_sla_configuration ().restart_sla_on_reactivation :
508+ # restart the sla start date to the current date, finding.save() will set new sla_expiration_date
509+ existing_finding .sla_start_date = self .now
507510 # don't dedupe before endpoints are added, postprocessing will be done on next save (in calling method)
508511 existing_finding .save_no_options ()
512+
509513 note = Notes (entry = f"Re-activated by { self .scan_type } re-upload." , author = self .user )
510514 note .save ()
511515 endpoint_statuses = existing_finding .status_finding .exclude (
Original file line number Diff line number Diff line change 44
55
66@register .filter
7- def multiply (value , arg ): # noqa: FURB118
7+ def multiply (value , arg ):
88 return value * arg
You can’t perform that action at this time.
0 commit comments