Skip to content

Commit

Permalink
Merge pull request voxpupuli#1042 from bastelfreak/http_cfg_append
Browse files Browse the repository at this point in the history
change http_cfg_append default false->undef
  • Loading branch information
hunner authored Mar 8, 2017
2 parents 26d74bc + f1a41e0 commit 922ea23
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 @@ -84,7 +84,7 @@
$gzip_types = undef,
$gzip_vary = 'off',
$http_cfg_prepend = false,
$http_cfg_append = false,
$http_cfg_append = undef,
$http_tcp_nodelay = 'on',
$http_tcp_nopush = 'off',
$keepalive_timeout = '65',
Expand Down Expand Up @@ -232,12 +232,6 @@
}
}

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

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')
Expand Down

0 comments on commit 922ea23

Please sign in to comment.