From: Gunnar Beutner Date: Wed, 25 Sep 2013 06:52:44 +0000 (+0200) Subject: config: Update validators. X-Git-Tag: v0.0.3~441 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83ca372fa8c80eae54e891d24672a7fa3b41e2c5;p=icinga2 config: Update validators. --- diff --git a/components/cluster/cluster-type.conf b/components/cluster/cluster-type.conf index 7ef83b90b..f97572a0d 100644 --- a/components/cluster/cluster-type.conf +++ b/components/cluster/cluster-type.conf @@ -28,7 +28,7 @@ type ClusterComponent { %attribute string "bind_port", %attribute array "peers" { - %attribute string "*" + %attribute name(Endpoint) "*" } } @@ -41,6 +41,6 @@ type Endpoint { }, %attribute array "accept_config" { - %attribute string "*" + %attribute name(Endpoint) "*" } } diff --git a/components/compat/compat-type.conf b/components/compat/compat-type.conf index 3ee0ff77a..7a9ba1605 100644 --- a/components/compat/compat-type.conf +++ b/components/compat/compat-type.conf @@ -29,7 +29,7 @@ type ExternalCommandListener { type CompatLog { %validator "ValidateRotationMethod", - %attribute string "path_prefix", + %attribute string "log_dir", %attribute string "rotation_method" } diff --git a/lib/config/base-type.conf b/lib/config/base-type.conf index 28f090541..fb6001bc9 100644 --- a/lib/config/base-type.conf +++ b/lib/config/base-type.conf @@ -31,7 +31,7 @@ type DynamicObject { }, %attribute array "authorities" { - %attribute string "*" + %attribute name(Endpoint) "*" }, %attribute array "domains" {