Simplify command invocation

(cherry picked from commit 732a959d9a)
This commit is contained in:
Nicki Křížek
2024-10-22 06:24:42 +00:00
committed by Matthijs Mekking
parent 00ec96e6e6
commit 3cffc34551
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -291,8 +291,7 @@ def check_dnssec_verify(server, zone):
file.write(rr.to_text())
file.write("\n")
verify_command = [*os.environ.get("VERIFY").split(), "-z", "-o", zone, zonefile]
verify_command = [os.environ.get("VERIFY"), "-z", "-o", zone, zonefile]
isctest.run.cmd(verify_command)
+2 -2
View File
@@ -49,7 +49,7 @@ def keystr_to_keylist(keystr: str, keydir: Optional[str] = None) -> List[Key]:
def keygen(zone, policy, keydir, when="now"):
keygen_command = [
*os.environ.get("KEYGEN").split(),
os.environ.get("KEYGEN"),
"-l",
"ns1/named.conf",
"-fK",
@@ -71,7 +71,7 @@ def keygen(zone, policy, keydir, when="now"):
def ksr(zone, policy, action, options="", raise_on_exception=True):
ksr_command = [
*os.environ.get("KSR").split(),
os.environ.get("KSR"),
"-l",
"ns1/named.conf",
"-k",