chore(openstack): modify mutelist file

This commit is contained in:
Daniel Barranquero
2026-01-19 14:54:52 +01:00
parent 9f88763b28
commit b52f15ea31

View File

@@ -6,12 +6,16 @@ from prowler.lib.outputs.utils import unroll_dict, unroll_tags
class OpenStackMutelist(Mutelist):
"""Mutelist implementation for the OpenStack provider."""
def is_finding_muted(self, finding: CheckReportOpenStack) -> bool:
def is_finding_muted(
self,
finding: CheckReportOpenStack,
project_id: str,
) -> bool:
"""Return True when the finding should be muted for the audited project."""
return self.is_muted(
audited_account=finding.project_id,
check=finding.check_metadata.CheckID,
finding_region=finding.region,
finding_resource=finding.resource_id or finding.resource_name,
finding_tags=unroll_dict(unroll_tags(finding.resource_tags)),
project_id,
finding.check_metadata.CheckID,
finding.region,
finding.resource_id or finding.resource_name,
unroll_dict(unroll_tags(finding.resource_tags)),
)