mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 04:51:51 +00:00
chore(iam): Remove unnecesary attached policy in a inline policy (#4359)
This commit is contained in:
committed by
GitHub
parent
da547b2bbe
commit
9ed4e89c60
+1
-1
@@ -6,7 +6,7 @@ class iam_inline_policy_no_administrative_privileges(Check):
|
||||
def execute(self) -> Check_Report_AWS:
|
||||
findings = []
|
||||
for policy in iam_client.policies:
|
||||
if policy.attached and policy.type == "Inline":
|
||||
if policy.type == "Inline":
|
||||
report = Check_Report_AWS(self.metadata())
|
||||
report.region = iam_client.region
|
||||
report.resource_arn = policy.arn
|
||||
|
||||
Reference in New Issue
Block a user