[Puppet-dev] Re: Is is possible to detect what file and line from which a function was called?

2015-11-16 Thread Henrik Lindberg
On 2015-12-11 6:20, Trevor Vaughan wrote: All, Please disregard, the answer is source.file and source.line and works MUCH better if you're not testing a function outside of a manifest set ;-). Thanks, Trevor That is not the same as where a function is called from, it is container from which

Re: [Puppet-dev] Re: Is is possible to detect what file and line from which a function was called?

2015-11-16 Thread Erik Dalén
Using it for filling in file names and line numbers in the resources created by a function (like create_resources) seems like a good use case. On Mon, Nov 16, 2015, 22:22 Henrik Lindberg wrote: > On 2015-12-11 6:20, Trevor Vaughan wrote: > > All, > > > > Please