From df559db6f6cbe65393b2ebcc571ebdaed06e0cf3 Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Sun, 19 Apr 2015 17:07:41 -0400 Subject: nagios::service typo in variable This invalidates the point of that if block since it will probably never be true that some undefined (read mis-typed) variable is set to 'absent'. --- manifests/service.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/service.pp b/manifests/service.pp index 918ce24..3e8f6c8 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -27,7 +27,7 @@ define nagios::service ( } if $ensure != 'absent' { - if $check_comand == 'absent' { + if $check_command == 'absent' { fail("Must pass a check_command to ${name} if it should be present") } if ($use_nrpe == true) { -- cgit v1.2.3