diff options
author | mh <mh@immerda.ch> | 2009-02-23 10:44:05 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-02-23 10:44:05 +0000 |
commit | 64441d28fbd383f6f69b64021dc914c76eb88126 (patch) | |
tree | f14dc7194c8a450b3902ad180bbc16f3c064735e /manifests | |
parent | 84833fdfacda69a9faaefab60a52710ff2c66e73 (diff) |
rather use absent than empty string
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/defines.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/defines.pp b/manifests/defines.pp index c789c8d..154d52d 100644 --- a/manifests/defines.pp +++ b/manifests/defines.pp @@ -88,7 +88,8 @@ define nagios::service( $normal_check_interval = 5, $check_period = "24x7", $nagios_contact_groups_in = $nagios_contact_groups, - $service_description = ''){ + $service_description = 'absent') +{ # this ensures nagios internal check, that every # service has it's host @@ -113,9 +114,8 @@ define nagios::service( check_period => $check_period, notify => Service[nagios], } - # if no service_description is set it is a namevar case $service_description { - '': { + 'absent': { Nagios_service[$name]{ service_description => $name, } |