Skip to content

Commit

Permalink
change http_cfg_prepend default false->undef
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Mar 8, 2017
1 parent 2e28bb5 commit 0dd3731
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
$gzip_proxied = 'off',
$gzip_types = undef,
$gzip_vary = 'off',
$http_cfg_prepend = false,
$http_cfg_prepend = undef,
$http_cfg_append = false,
$http_tcp_nodelay = 'on',
$http_tcp_nopush = 'off',
Expand Down Expand Up @@ -248,12 +248,6 @@
}
}

if ($nginx_cfg_prepend != false) {
if !(is_hash($nginx_cfg_prepend) or is_array($nginx_cfg_prepend)) {
fail('$nginx_cfg_prepend must be either a hash or array')
}
}

if !(is_string($http_access_log) or is_array($http_access_log)) {
fail('$http_access_log must be either a string or array')
}
Expand Down

0 comments on commit 0dd3731

Please sign in to comment.