From e3aaac9bae5b28d8374473683fd7588042638ffa Mon Sep 17 00:00:00 2001 From: Steffen Zieger Date: Wed, 4 Jun 2014 22:39:06 +0200 Subject: [PATCH] Fix validation of events_use parameter --- manifests/init.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 8fac0fd..02c4a8a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -89,7 +89,9 @@ class nginx ( if (!is_integer($worker_rlimit_nofile)) { fail('$worker_rlimit_nofile must be an integer.') } - validate_string($events_use) + if (!is_string($events_use)) and ($events_use != false) { + fail('$events_use must be a string or false.') + } validate_string($multi_accept) validate_string($package_name) validate_string($package_ensure)