Merge pull request #371 from mr-tron/master

Changed testing variables in init.pp
This commit is contained in:
James Fryman 2014-07-02 17:01:17 -05:00
commit 91e92e711c

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')
}
}