mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
style
This commit is contained in:
@@ -128,23 +128,23 @@ def check(zone, args, masterfile=None, lookaside=None):
|
|||||||
klist.append(SECRR(line, lookaside))
|
klist.append(SECRR(line, lookaside))
|
||||||
|
|
||||||
if len(klist) < 1:
|
if len(klist) < 1:
|
||||||
print ("No DNSKEY records found in zone apex")
|
print("No DNSKEY records found in zone apex")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
found = False
|
found = False
|
||||||
for rr in klist:
|
for rr in klist:
|
||||||
if rr in rrlist:
|
if rr in rrlist:
|
||||||
print ("%s for KSK %s/%03d/%05d (%s) found in parent" %
|
print("%s for KSK %s/%03d/%05d (%s) found in parent" %
|
||||||
(rr.rrtype, rr.rrname.strip('.'), rr.keyalg,
|
(rr.rrtype, rr.rrname.strip('.'), rr.keyalg,
|
||||||
rr.keyid, SECRR.hashalgs[rr.hashalg]))
|
rr.keyid, SECRR.hashalgs[rr.hashalg]))
|
||||||
found = True
|
found = True
|
||||||
else:
|
else:
|
||||||
print ("%s for KSK %s/%03d/%05d (%s) missing from parent" %
|
print("%s for KSK %s/%03d/%05d (%s) missing from parent" %
|
||||||
(rr.rrtype, rr.rrname.strip('.'), rr.keyalg,
|
(rr.rrtype, rr.rrname.strip('.'), rr.keyalg,
|
||||||
rr.keyid, SECRR.hashalgs[rr.hashalg]))
|
rr.keyid, SECRR.hashalgs[rr.hashalg]))
|
||||||
|
|
||||||
if not found:
|
if not found:
|
||||||
print ("No %s records were found for any DNSKEY" % ("DLV" if lookaside else "DS"))
|
print("No %s records were found for any DNSKEY" % ("DLV" if lookaside else "DS"))
|
||||||
|
|
||||||
return found
|
return found
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user