knotctl 0.0.8__tar.gz → 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -419,7 +419,6 @@ def main() -> int:
|
|
|
419
419
|
updatecmd.add_argument(
|
|
420
420
|
"-a",
|
|
421
421
|
"--argument",
|
|
422
|
-
nargs="*",
|
|
423
422
|
action="append",
|
|
424
423
|
metavar="KEY=VALUE",
|
|
425
424
|
help="Specify key - value pairs to be updated: name=dns1.example.com. or data=127.0.0.1 for example. --argument can be repeated",
|
|
@@ -473,6 +472,7 @@ def main() -> int:
|
|
|
473
472
|
headers = {"Authorization": "Bearer {}".format(token)}
|
|
474
473
|
|
|
475
474
|
# Route based on command
|
|
475
|
+
url = ""
|
|
476
476
|
ttl = None
|
|
477
477
|
if "ttl" in args:
|
|
478
478
|
ttl = args.ttl
|
|
@@ -486,7 +486,7 @@ def main() -> int:
|
|
|
486
486
|
soa_url = setup_url(baseurl, None, None, zname, "SOA", None, args.zone)
|
|
487
487
|
soa_json = run_list(soa_url, True, headers, ret=True)
|
|
488
488
|
ttl = soa_json[0]["ttl"]
|
|
489
|
-
|
|
489
|
+
if args.command in ["auditlog", "changelog"]:
|
|
490
490
|
pass
|
|
491
491
|
else:
|
|
492
492
|
try:
|
|
@@ -520,7 +520,7 @@ def main() -> int:
|
|
|
520
520
|
run_log(url, args.json, headers)
|
|
521
521
|
else:
|
|
522
522
|
parser.print_help(sys.stderr)
|
|
523
|
-
return
|
|
523
|
+
return 2
|
|
524
524
|
except requests.exceptions.RequestException as e:
|
|
525
525
|
output(error(e, "Could not connect to server"))
|
|
526
526
|
except (RequestsJSONDecodeError, SimplejsonJSONDecodeError):
|
|
File without changes
|
|
File without changes
|