* fixed validation

Signed-off-by: Nick Chappell <nick@intronic.org>

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

refs#7228: https://dev.icinga.org/issues/7228
This commit is contained in:
Ricardo Melo 2014-10-22 17:04:44 -04:00 committed by Nick Chappell
parent 537735a486
commit abe26cb9e3

View file

@ -37,7 +37,9 @@ define icinga2::object::notificationcommand (
if $env {
validate_hash($env)
}
validate_hash($vars)
if $vars {
validate_hash($vars)
}
if $timeout {
validate_re($timeout, '^\d+$')
}