Merge pull request #248 from PierreR/patch-1

Avoid creating undef variable
This commit is contained in:
James Fryman 2014-02-06 08:59:19 -06:00
commit 26a856e338

View file

@ -357,9 +357,7 @@ define nginx::resource::vhost (
notify => Class['nginx::service'],
}
if ($ssl == true) and ($ssl_port == $listen_port) {
$ssl_only = true
}
$ssl_only = ($ssl == true) and ($ssl_port == $listen_port)
if $use_default_location == true {
# Create the default location reference for the vHost