From f6934216e72edee94e76a446841460dc81811d15 Mon Sep 17 00:00:00 2001
From: Maarten de Waard <maarten@greenhost.nl>
Date: Mon, 9 Dec 2019 14:14:14 +0100
Subject: [PATCH] set TTL for A record to 60 seconds

---
 openappstack/__main__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openappstack/__main__.py b/openappstack/__main__.py
index 117772a91..720549f93 100755
--- a/openappstack/__main__.py
+++ b/openappstack/__main__.py
@@ -343,7 +343,7 @@ def create_domain_records(domain, droplet_ip, subdomain=None):
 
     domain_record = greenhost_cloud.create_domain_record(
         domain=domain, name=subdomain_arg,
-        data=droplet_ip, record_type='A', update=True)
+        data=droplet_ip, record_type='A', update=True, ttl=60)
     log.info('Domain record: %s', domain_record)
 
     subdomain_arg = '*'
-- 
GitLab