Merge pull request #513 from 3flex/fix-future-parser-failures

fix a future parser failure introduced by #510
This commit is contained in:
Matthew Haughton 2014-12-03 23:48:48 -05:00
commit 311e50461e

View file

@ -514,22 +514,22 @@ define nginx::resource::vhost (
# Support location_cfg_prepend and location_cfg_append on default location created by vhost # Support location_cfg_prepend and location_cfg_append on default location created by vhost
if $location_cfg_prepend { if $location_cfg_prepend {
::Nginx::Resource::Location["${name_sanitized}-default"] { Nginx::Resource::Location["${name_sanitized}-default"] {
location_cfg_prepend => $location_cfg_prepend } location_cfg_prepend => $location_cfg_prepend }
} }
if $location_cfg_append { if $location_cfg_append {
::Nginx::Resource::Location["${name_sanitized}-default"] { Nginx::Resource::Location["${name_sanitized}-default"] {
location_cfg_append => $location_cfg_append } location_cfg_append => $location_cfg_append }
} }
if $location_custom_cfg_prepend { if $location_custom_cfg_prepend {
::Nginx::Resource::Location["${name_sanitized}-default"] { Nginx::Resource::Location["${name_sanitized}-default"] {
location_custom_cfg_prepend => $location_custom_cfg_prepend } location_custom_cfg_prepend => $location_custom_cfg_prepend }
} }
if $location_custom_cfg_append { if $location_custom_cfg_append {
::Nginx::Resource::Location["${name_sanitized}-default"] { Nginx::Resource::Location["${name_sanitized}-default"] {
location_custom_cfg_append => $location_custom_cfg_append } location_custom_cfg_append => $location_custom_cfg_append }
} }