fix(cloudtrail): handle HasInsightSelectors key (#2996)

This commit is contained in:
Sergio Garcia
2023-11-02 14:09:27 +01:00
committed by GitHub
parent 0e22458e86
commit 1a5742d4f5

View File

@@ -53,7 +53,7 @@ class Cloudtrail(AWSService):
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: