> In the 3.x function API use: > > lookupvar('varname') > > In the 4.x function API use: > > closure_scope.lookupvar('varname') > > Here is the specification for the 4.x API. > > https://github.com/puppetlabs/puppet-specifications/blob/master/language/func-api.md > > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fpuppetlabs%2Fpuppet-specifications%2Fblob%2Fmaster%2Flanguage%2Ffunc-api.md&sa=D&sntz=1&usg=AFQjCNE-GaBgyAfECLuUg52Idq1Erm6KtQ> > > Thank Henrik. It works like a charm.
> Also consider looking up the $facts hash instead of directly looking up > individual facts like $clientnoop. This to be future proof. (See the > link you posted regarding details). > In fact, using the $fact hash was my first choice. But I didn't find a clientnoop fact, nor a noop fact. Did I miss something ? -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/557e90f2-d9e2-4d1b-a9c5-96dcf3f6bfd4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.