From 7737832bf3d657240ebe485335148ff448b84ca6 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Thu, 29 Mar 2018 10:08:39 -0400 Subject: [PATCH] Fix bug adding None TTL to route53 responses. --- moto/route53/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/moto/route53/models.py b/moto/route53/models.py index af8bb690..d483d22e 100644 --- a/moto/route53/models.py +++ b/moto/route53/models.py @@ -140,7 +140,9 @@ class RecordSet(BaseModel): {% if record_set.region %} {{ record_set.region }} {% endif %} - {{ record_set.ttl }} + {% if record_set.ttl %} + {{ record_set.ttl }} + {% endif %} {% for record in record_set.records %}