summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-01-24 14:14:50 +0100
committervarac <varacanero@zeromail.org>2013-01-24 14:14:50 +0100
commitf8061e19c2ca19032577c8d7a117acb9090b0c53 (patch)
tree12a3baeb79e22feba923fe3158cd61afc996f08f
parentd8a627fd8bc4895794ba72997eeeb2364fec5dd7 (diff)
unquoted boolean variable
-rw-r--r--manifests/service.pp12
1 files changed, 6 insertions, 6 deletions
diff --git a/manifests/service.pp b/manifests/service.pp
index 134d1f7..2f6d974 100644
--- a/manifests/service.pp
+++ b/manifests/service.pp
@@ -30,14 +30,14 @@ define nagios::service (
if $check_comand == 'absent' {
fail("Must pass a check_command to ${name} if it should be present")
}
- if ($use_nrpe == 'true') {
- include nagios::command::nrpe_timeout
+ if ($use_nrpe == true) {
+ include nagios::command::nrpe_timeout
if ($nrpe_args != '') {
- $real_check_command = "check_nrpe_timeout!$nrpe_timeout!$check_command!\"$nrpe_args\""
- } else {
- $real_check_command = "check_nrpe_1arg_timeout!$nrpe_timeout!$check_command"
- }
+ $real_check_command = "check_nrpe_timeout!$nrpe_timeout!$check_command!\"$nrpe_args\""
+ } else {
+ $real_check_command = "check_nrpe_1arg_timeout!$nrpe_timeout!$check_command"
+ }
} else {
$real_check_command = "$check_command"
}