From 1696d5dd9175b3f12e87808b17d257eb7f3870ec Mon Sep 17 00:00:00 2001 From: Jerry Date: Mon, 5 Dec 2022 22:35:03 +0800 Subject: [PATCH] fix write_named_trust_anchors in dns-generator --- scripts/dns-generator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/dns-generator.py b/scripts/dns-generator.py index 97ab6a8..d0835c9 100755 --- a/scripts/dns-generator.py +++ b/scripts/dns-generator.py @@ -33,7 +33,8 @@ def write_named_trust_anchors(): for entry in dnskeys_exported: zone, records = entry['zone'], [r['dnskey'] for r in entry['records']] for record in records: - contents.append(f" {zone:>{maxzonelen}s} static-key \"{record}\";") + a1, a2, a3, a4 = record.split(maxsplit=3) + contents.append(f" {zone:>{maxzonelen}s} static-key {a1} {a2} {a3} \"{a4}\";") NAMED_TURST_ANCHORS_FILE.write_text(header + '\n'.join(contents) + footer) def main():