Hi,

I am new to Ruby ERB and inline_template.  Can anyone spot what's wrong 
with this inline_template?

            $moddedContent = inline_template("<%= puts gets(nil).gsub(/one 
two three/,\"\") /tmp/blah %>")
            exec {
                "/bin/echo '${moddedContent}' > /tmp/blah" :
            }

When I try to apply it, I got the following error.
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Failed to parse inline template: private method `gets' called for 
false:FalseClass at foo.pp:33 on node testnode

Thanks!

David

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to