use documented default key ttl

(cherry picked from commit 6499bdfd8b)
This commit is contained in:
Mark Andrews
2018-11-26 17:24:03 +11:00
parent a74acbfd82
commit 232a2004ba
2 changed files with 8 additions and 4 deletions

View File

@@ -452,6 +452,10 @@ class dnskey:
if timespan is None:
timespan = self.ttl
if timespan is None:
output("WARNING: Key %s using default TTL." % repr(self))
timespan = (60*60*24)
now = time.time()
d = self.delete()
i = self.inactive()