+1, as this is analogous to the solution that Matt Robinson found yesterday.

I'll be spending some time today trying to get this file tested enough that
we're comfortable promoting it from /ext/ to /lib/puppet/parser/functions/

~Jesse

On Fri, Jul 23, 2010 at 9:31 AM, James Turnbull <[email protected]>wrote:

>
> Signed-off-by: James Turnbull <[email protected]>
> ---
>  ext/extlookup.rb |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/ext/extlookup.rb b/ext/extlookup.rb
> index d87583b..81e6a4b 100644
> --- a/ext/extlookup.rb
> +++ b/ext/extlookup.rb
> @@ -125,6 +125,8 @@ module Puppet::Parser::Functions
>
>     desired = "_ExtUNSET_"
>
> +    parser = Puppet::Parser::Parser.new(environment)
> +
>     datafiles.each do |file|
>       parser.watch_file(file) if File.exists?(file)
>
> --
> 1.7.1.1
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<puppet-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-dev?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
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-dev?hl=en.

Reply via email to