Hi Fred, On 05 Sep 2015, at 19:36, Frédéric Lespez <frederic.les...@gmail.com> wrote:
> Hi, > > Inside a manifest, you can know if noop is enabled thanks to the $clientnoop > variable[1]. > But inside a custom function, how can you know it ? $clientnnop is a fact [1] You can access facts from functions e.g. by using lookupvar(‘clientnoop’) [2] [1]https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#puppet-agent-facts [2]https://docs.puppetlabs.com/guides/custom_functions.html#using-facts-and-variables hth, Martin -- 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/51589416-A845-4087-B160-880A4D41AA13%40gmail.com. For more options, visit https://groups.google.com/d/optout.