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 the evaluated code makes a call from.

For 4.x we have a ticket to make calling location available.

Question is: for what purpose is this needed? For errors? or for other purposes?

- henrik

On Wed, Nov 11, 2015 at 1:32 PM, Trevor Vaughan <[email protected]
<mailto:[email protected]>> wrote:

    Hoping to use this for logging purposes.

    I can get it from a custom type, but I don't seem to be able to snag
    this information from a function.

    Thanks,

    Trevor

    --
    Trevor Vaughan
    Vice President, Onyx Point, Inc
    (410) 541-6699 <tel:%28410%29%20541-6699>

    -- This account not approved for unencrypted proprietary information --




--
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699

-- This account not approved for unencrypted proprietary information --

--
You received this message because you are subscribed to the Google
Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-dev/CANs%2BFoUh-R0sh%3DsCSaNx8hPQrz%2BxHepu%3DDCuQqp4ggtoYzLQKQ%40mail.gmail.com
<https://groups.google.com/d/msgid/puppet-dev/CANs%2BFoUh-R0sh%3DsCSaNx8hPQrz%2BxHepu%3DDCuQqp4ggtoYzLQKQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
You received this message because you are subscribed to the Google Groups "Puppet 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/n2dhe9%24poe%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to