mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-07 00:02:05 -04:00
Simplify command invocation
This commit is contained in:
parent
b5633462bf
commit
732a959d9a
2 changed files with 3 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue