Update init.pp

Bad logic for type validate.
This commit is contained in:
mr-tron 2014-07-02 14:07:54 +04:00
parent e270b763b6
commit 15eff7a8df

View file

@ -162,7 +162,7 @@ class nginx (
validate_string($proxy_buffers)
validate_string($proxy_buffer_size)
if ($http_cfg_append != false) {
if !is_hash($http_cfg_append) or !is_array($http_cfg_append) {
if !(is_hash($http_cfg_append) or is_array($http_cfg_append)) {
fail('$http_cfg_append must be either a hash or array')
}
}