On Tuesday, July 31, 2012 6:07:40 PM UTC-5, Stefan Schulte wrote:
>
> On Tue, Jul 31, 2012 at 03:24:15PM -0700, ZJE wrote: 
> > Is it possible to get extra output when running custom types? Right now, 
> > I'm getting an error message and I'm not sure where in the code it's 
> being 
> > thrown from. 
> > For example, I can see that I'm trying to iterate over a null object, 
> but 
> > I'm not sure where in the code this happening when the message is this: 
> > --- 
> > Error: /Stage[main]//Node[testnode0101]/TestType[testname]: Could not 
> > evaluate: undefined method `each' for nil:NilClass 
> > --- 
> > 
>
> Try to run puppet with the --trace option which will hopefully show a 
> stacktrace when the error is happening. Otherwise you can place a few 
> method call like 
>
>     debug "inside validation block" 
>
> etc and run puppet with -d/--debug 
>
> -Stefan 
>
>
--trace gives exactly what I was looking for - thanks! 

-- 
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/-/4SMLcNuTFWcJ.
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