Skip to content

Commit

Permalink
fix(cloudtrail): check if trails exist in service (#4162)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergargar authored Jun 3, 2024
1 parent cdd37a7 commit 6de6fb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __get_trails__(self, regional_client):
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 (
Expand Down

0 comments on commit 6de6fb6

Please sign in to comment.