mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-01-25 02:08:11 +00:00
chore(openstack): modify mutelist file
This commit is contained in:
@@ -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)),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user