I ended up creating workaround; Instead of using the ec2 api in the 
function, I am using it elsewhere to write a file, and my custom function 
reads this file as a string.

I still don't know why the parser chokes when trying to iterate a 
collection. I tried updating the master and agent to 3.1.1 and the issue 
still exists.

On Tuesday, May 14, 2013 8:14:17 PM UTC-4, David Pires wrote:
>
> I have a custom function (
> http://docs.puppetlabs.com/guides/custom_functions.html) working locally 
> using `puppet apply --modulepath=` and a test manifest.
>
> The issue I am having is when I run it on a node I get a "wrong header 
> line format" error on the puppet master and I can't figure out why. It is 
> not a erb template issue as I have tested all my erb's and they are fine, I 
> have pinpointed the error to wherever I use the function.
>
> I have run through all the troubleshooting steps (irb, ruby -rpuppet etc.) 
> they all work correctly. The same error occurs whether I use the function 
> in my main site manifest or through a module class.
>
> Any help to further debug this is appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to