We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 860a50b commit 648c930Copy full SHA for 648c930
libs/workbench/dnsutil.py
@@ -110,7 +110,7 @@ def get_keyfile(zone):
110
111
def check_create_key(zone, keyfile):
112
base_keyfile = keyfile[:-8]
113
- if not base_keyfile.startswith("nods.") and not os.path.exists(keyfile):
+ if not os.path.basename(base_keyfile).startswith("nods.") and not os.path.exists(keyfile):
114
os.makedirs(os.path.dirname(keyfile), exist_ok=True)
115
cmd = "ldns-keygen -k -r /dev/urandom -a RSASHA256 -b 1024 %s" % zone
116
stdout = execute(cmd)
0 commit comments