diff --git a/dojo/tools/api_sonarqube/updater_from_source.py b/dojo/tools/api_sonarqube/updater_from_source.py index 137c55dbd79..a844ce35965 100644 --- a/dojo/tools/api_sonarqube/updater_from_source.py +++ b/dojo/tools/api_sonarqube/updater_from_source.py @@ -80,7 +80,7 @@ def update_finding_status(finding, sonarqube_status): finding.false_p = False finding.mitigated = None finding.is_mitigated = False - ra_helper.remove_finding.from_any_risk_acceptance(finding) + ra_helper.remove_finding_from_risk_acceptance(finding) elif sonarqube_status == "CONFIRMED": finding.active = True @@ -88,7 +88,7 @@ def update_finding_status(finding, sonarqube_status): finding.false_p = False finding.mitigated = None finding.is_mitigated = False - ra_helper.remove_finding.from_any_risk_acceptance(finding) + ra_helper.remove_finding_from_risk_acceptance(finding) elif sonarqube_status == "FIXED": finding.active = False @@ -96,7 +96,7 @@ def update_finding_status(finding, sonarqube_status): finding.false_p = False finding.mitigated = timezone.now() finding.is_mitigated = True - ra_helper.remove_finding.from_any_risk_acceptance(finding) + ra_helper.remove_finding_from_risk_acceptance(finding) elif sonarqube_status == "WONTFIX": finding.active = False @@ -114,6 +114,6 @@ def update_finding_status(finding, sonarqube_status): finding.false_p = True finding.mitigated = None finding.is_mitigated = False - ra_helper.remove_finding.from_any_risk_acceptance(finding) + ra_helper.remove_finding_from_risk_acceptance(finding) finding.save(issue_updater_option=False, dedupe_option=False)