Hi,
On 12/07/2011 04:26 PM, Sans wrote:
> Dear all,
>
> I have this line:
>
> <% $c_repo.split(',').each_with_index do |repo, i| %>
>
> in one of my template files and on the target node I'm getting this
> error:
>
> err: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Failed to parse template zmfs/zmfs_prob.erb: private method
> `split' called for nil:NilClass
>
>
> Any idea what am I missing? Cheers!!
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.