From abe26cb9e3028fbc746bddcf27b80e9688d46d52 Mon Sep 17 00:00:00 2001 From: Ricardo Melo Date: Wed, 22 Oct 2014 17:04:44 -0400 Subject: [PATCH] * fixed validation Signed-off-by: Nick Chappell Merged in from: https://github.com/Icinga/puppet-icinga2/pull/32 refs#7228: https://dev.icinga.org/issues/7228 --- manifests/object/notificationcommand.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/object/notificationcommand.pp b/manifests/object/notificationcommand.pp index d9cbe17..ced2ec5 100644 --- a/manifests/object/notificationcommand.pp +++ b/manifests/object/notificationcommand.pp @@ -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+$') }