mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 20:42:02 +00:00
fix(cloudtrail): check if trails exist in service (#4162)
This commit is contained in:
@@ -37,7 +37,7 @@ class Cloudtrail(AWSService):
|
||||
trails_count = 0
|
||||
for trail in describe_trails:
|
||||
# If a multi region trail was already retrieved in another region
|
||||
if trail["TrailARN"] in self.trails.keys():
|
||||
if self.trails and trail["TrailARN"] in self.trails.keys():
|
||||
continue
|
||||
|
||||
if not self.audit_resources or (
|
||||
|
||||
Reference in New Issue
Block a user