Skip to content

Commit

Permalink
fix(cloudtrail): handle HasInsightSelectors key (#2996)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCloudSec authored Nov 2, 2023
1 parent 0e22458 commit 1a5742d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __get_trails__(self, regional_client):
kms_key=kms_key_id,
log_group_arn=log_group_arn,
data_events=[],
has_insight_selectors=trail["HasInsightSelectors"],
has_insight_selectors=trail.get("HasInsightSelectors"),
)
)
if trails_count == 0:
Expand Down

0 comments on commit 1a5742d

Please sign in to comment.