Update init.pp
Bad logic for type validate.
This commit is contained in:
parent
e270b763b6
commit
15eff7a8df
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue