updating validation of interval to allow resending of alerts to be disabled

Merged from: https://github.com/Icinga/puppet-icinga2/pull/70

refs#8153: https://dev.icinga.org/issues/8153
This commit is contained in:
Steven Bambling 2014-12-18 08:14:10 -05:00 committed by Nick Chappell
parent b6ff3da4b3
commit ec665c146f
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ define icinga2::object::apply_notification_to_host (
validate_array($user_groups)
validate_hash($times)
if $interval {
validate_re($interval, '^\d$')
validate_string($interval)
}
if $period {
validate_string($period)

View file

@ -44,7 +44,7 @@ define icinga2::object::apply_notification_to_service (
validate_array($user_groups)
validate_hash($times)
if $interval {
validate_re($interval, '^\d$')
validate_string($interval)
}
if $period {
validate_string($period)