]> granicus.if.org Git - icinga2/commitdiff
Implement validator for timeperiods.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 27 Jun 2013 09:25:10 +0000 (11:25 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 27 Jun 2013 09:25:10 +0000 (11:25 +0200)
Fixes #3845

lib/icinga/icinga-type.conf

index d37da4b39a95f8592c58571cbf79c5e749045a29..bd89463ff8d98d8db6476ab7944c2fad02e45dd8 100644 (file)
@@ -310,6 +310,13 @@ type TimePeriod {
                %require "update",
                %attribute string "update"
        },
+
+/*  %if (methods.update == "LegacyTimePeriod") { */
+//     %require "ranges",
+       %attribute dictionary "ranges" {
+               %attribute string "*"
+       }
+/*    } */
 }
 
 type PerfdataWriter {