From: Nicki Křížek Date: Tue, 16 Jun 2026 13:57:48 +0000 (+0200) Subject: Read DNSKEY TTL from kasp.Key.dnskey X-Git-Tag: v9.21.24~30^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dc039f735788d81f695dccac6ffad65e8547476;p=thirdparty%2Fbind9.git Read DNSKEY TTL from kasp.Key.dnskey Remove the redundant ttl() method. The DNSKEY RR already provides the TTL. --- diff --git a/bin/tests/system/isctest/kasp.py b/bin/tests/system/isctest/kasp.py index 5987de2c773..b919753dd7e 100644 --- a/bin/tests/system/isctest/kasp.py +++ b/bin/tests/system/isctest/kasp.py @@ -506,14 +506,6 @@ class Key: return isctest.vars.algorithms.RSASHA512OID.number return alg - def ttl(self) -> int: - with open(self.keyfile, "r", encoding="utf-8") as file: - for line in file: - if line.startswith(";"): - continue - return int(line.split()[1]) - return 0 - @property def dnskey(self) -> dns.rrset.RRset: with open(self.keyfile, "r", encoding="utf-8") as file: @@ -588,7 +580,7 @@ class Key: dsfromkey_command = [ os.environ.get("DSFROMKEY"), "-T", - str(self.ttl()), + str(self.dnskey.ttl), "-a", alg, "-C",