knotctl 0.0.8__py3-none-any.whl → 0.1.0__py3-none-any.whl

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.
knotctl/__init__.py CHANGED
@@ -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
- elif args.command in ["auditlog", "changelog"]:
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 1
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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: knotctl
3
- Version: 0.0.8
3
+ Version: 0.1.0
4
4
  Summary: A CLI for knotapi.
5
5
  Author-email: Micke Nordin <hej@mic.ke>
6
6
  Requires-Python: >=3.9
@@ -0,0 +1,6 @@
1
+ knotctl/__init__.py,sha256=kqE3iZEX2pxMSfXTSDyJUCayRanSpHLgdd4EqVR1kV0,18422
2
+ knotctl-0.1.0.dist-info/entry_points.txt,sha256=oGFZaAfsfqC-KbiCm04W6DTBFCq2f5F_p3KMEgNoY4s,40
3
+ knotctl-0.1.0.dist-info/LICENSE,sha256=tqi_Y64slbCqJW7ndGgNe9GPIfRX2nVGb3YQs7FqzE4,34670
4
+ knotctl-0.1.0.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
5
+ knotctl-0.1.0.dist-info/METADATA,sha256=yqUFEkuHQ_GgpuV2TJox78ujwdKagC0dYEtrCUGbwBk,7236
6
+ knotctl-0.1.0.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- knotctl/__init__.py,sha256=WkfcExtJNhEyRIuPXvepLaaD-XpW1rA6nl31fGxBinU,18430
2
- knotctl-0.0.8.dist-info/entry_points.txt,sha256=oGFZaAfsfqC-KbiCm04W6DTBFCq2f5F_p3KMEgNoY4s,40
3
- knotctl-0.0.8.dist-info/LICENSE,sha256=tqi_Y64slbCqJW7ndGgNe9GPIfRX2nVGb3YQs7FqzE4,34670
4
- knotctl-0.0.8.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
5
- knotctl-0.0.8.dist-info/METADATA,sha256=GgPeYTTKSoe6ONxgwF44fe85S6yHMnsBuWp7-y9rg4g,7236
6
- knotctl-0.0.8.dist-info/RECORD,,