Skip to content

Commit

Permalink
Merge pull request #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 e30ed16 + 5d1eb47 commit caeda2d
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 caeda2d

Please sign in to comment.