[Puppet Users] Re: Error: Function does not return a value

2013-01-18 Thread jcbollinger
On Friday, January 18, 2013 10:08:49 AM UTC-6, iamauser wrote: > > Hi John, > > Thanks for the reply. Your corrections made it work. As you pointed out > about the implementation of this code. I wrote it keeping in mind 'def' of > ruby where one can return a value evaluating a block. Syntactica

[Puppet Users] Re: Error: Function does not return a value

2013-01-18 Thread iamauser
Hi John, Thanks for the reply. Your corrections made it work. As you pointed out about the implementation of this code. I wrote it keeping in mind 'def' of ruby where one can return a value evaluating a block. Syntactically it didn't have a problem with Ruby, but it failed to return a value in

[Puppet Users] Re: Error: Function does not return a value

2013-01-18 Thread jcbollinger
On Thursday, January 17, 2013 7:40:11 PM UTC-6, iamauser wrote: > > My custom function looks like this : > > module Puppet::Parser::Functions > newfunction(:pattern_in_file, :type => :rvalue) do |args| > filename = args[0] > pattern = args[1] >

[Puppet Users] Re: Error: Function does not return a value

2013-01-18 Thread iamauser
Any words/thoughts/suggestions/hints/ideas/pointers ? -- 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/-/aoLp9yEJ1T4J. To post to this group, send email to pup