Skip to content

Commit 648c930

Browse files
committed
fix nods generation (i.e. don't generate keys and ds record)
1 parent 860a50b commit 648c930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/workbench/dnsutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def get_keyfile(zone):
110110

111111
def check_create_key(zone, keyfile):
112112
base_keyfile = keyfile[:-8]
113-
if not base_keyfile.startswith("nods.") and not os.path.exists(keyfile):
113+
if not os.path.basename(base_keyfile).startswith("nods.") and not os.path.exists(keyfile):
114114
os.makedirs(os.path.dirname(keyfile), exist_ok=True)
115115
cmd = "ldns-keygen -k -r /dev/urandom -a RSASHA256 -b 1024 %s" % zone
116116
stdout = execute(cmd)

0 commit comments

Comments
 (0)