mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
fix(route53): handle empty Records in Zones (#2351)
This commit is contained in:
@@ -74,7 +74,9 @@ class Route53:
|
|||||||
type=record["Type"],
|
type=record["Type"],
|
||||||
records=[
|
records=[
|
||||||
resource_record["Value"]
|
resource_record["Value"]
|
||||||
for resource_record in record["ResourceRecords"]
|
for resource_record in record.get(
|
||||||
|
"ResourceRecords", []
|
||||||
|
)
|
||||||
],
|
],
|
||||||
is_alias=True if "AliasTarget" in record else False,
|
is_alias=True if "AliasTarget" in record else False,
|
||||||
hosted_zone_id=zone_id,
|
hosted_zone_id=zone_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user