Hey,

Thanks it works! Funny that it didnt work before this as I swore I tried it 
too. my luck maybe.

On Monday, September 3, 2012 12:14:54 PM UTC+8, Gonzalo wrote:
>
> On Mon, Sep 3, 2012 at 1:31 PM, Choon Ming Goh 
> <[email protected]<javascript:>
> > wrote:
>
>> Hi guys,
>>
>> I'm trying to do the following in my template: 
>>
>>   location <%= location %> {
>>     proxy_pass <%= proxy %>;
>>     <% if scope.lookupvar('nginx::resource::location::proxy_header') then
>>         scope.lookupvar('nginx::resource::location::proxy_header').each 
>> do |header| %>
>>     proxy_set_header <%= header %>
>>     <% end %>
>>
>
> Not sure if this is it, but try adding another <% end %> as you have an 
> "if" statement and a "do" block to close.
>
> - Gonzalo
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/RsZd0U66mlgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to