fix(route53): handle empty Records in Zones (#2351)

This commit is contained in:
Sergio Garcia
2023-05-16 10:51:43 +02:00
committed by GitHub
parent cc097e7a3f
commit 54ed29e08d

View File

@@ -74,7 +74,9 @@ class Route53:
type=record["Type"],
records=[
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,
hosted_zone_id=zone_id,