...and to close that loop: in Ruby, '$c_repo' is a global variable.
Because nothing will ever have assigned it, you called the `split`
method on the default value, `nil`, which raised that error.  Puppet
then reported it. :)

Daniel

On Wed, Dec 7, 2011 at 10:17, Sans <[email protected]> wrote:
> thanks Felix! that's it - good catch. did not notice the "$" sign at
> all. working just fine now.
>
> Cheers,
> San
>
> On Dec 7, 3:33 pm, Felix Frank <[email protected]>
> wrote:
>>
>>
>> I shall assume that you declare a variable $c_repo somewhere in your
>> manifest.
>>
>> In your template, reference it as 'c_repo' without the leading dollar sign:
>>
>> <% c_repo.split(',').each_with_index do |repo, i| %>
>>
>> HTH,
>> Felix
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> 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.
>



-- 
⎋ Puppet Labs Developer – http://puppetlabs.com
♲ Made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
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