]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
knot-exporter: no zone timers by default
authorJan Doskočil <jan.doskocil@nic.cz>
Tue, 26 Nov 2024 11:25:33 +0000 (12:25 +0100)
committerJan Doskočil <jan.doskocil@nic.cz>
Tue, 26 Nov 2024 12:45:24 +0000 (13:45 +0100)
python/knot_exporter/knot_exporter/knot_exporter.py

index 8135294b410e07425fd915bfcf8228f277c80b65..7d6fc379191b8073a5be32de91e4528a359f1ece 100755 (executable)
@@ -216,15 +216,23 @@ def main():
     )
 
     parser.add_argument(
-        "--no-zone-timers",
+        "--no-zone-serial",
         action='store_false',
-        help="disable collection of zone timer settings"
+        help="disable collection of zone serial"
     )
 
     parser.add_argument(
-        "--no-zone-serial",
-        action='store_false',
-        help="disable collection of zone serial"
+        "--zone-timers",
+        action='store_true',
+        default=False,
+        help="enable collection of zone SOA timer values"
+    )
+
+    parser.add_argument(
+        "--no-zone-timers",
+        action='store_const',
+        help="supported for compatibility reasons; no effect",
+        # deprecated=True # in python >=3.13
     )
 
     args = parser.parse_args()
@@ -237,7 +245,7 @@ def main():
         args.no_global_stats,
         args.no_zone_stats,
         args.no_zone_status,
-        args.no_zone_timers,
+        args.zone_timers,
         args.no_zone_serial,
     ))