It looks like this may not be the bug we thought.  See comments on
http://projects.puppetlabs.com/issues/5392

On Wed, Dec 1, 2010 at 6:39 AM, Peter Meier <[email protected]> wrote:

> If no resources were exported for a given type, when we collected
> this empty resource set no resource_type was found internally. We
> now abort the evaluation if no type is found.
>
> Signed-off-by: Peter Meier <[email protected]>
> ---
>  lib/puppet/parser/ast/collection.rb |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/lib/puppet/parser/ast/collection.rb
> b/lib/puppet/parser/ast/collection.rb
> index ef36b71..5c8ab69 100644
> --- a/lib/puppet/parser/ast/collection.rb
> +++ b/lib/puppet/parser/ast/collection.rb
> @@ -16,6 +16,7 @@ class Puppet::Parser::AST
>       str, code = query && query.safeevaluate(scope)
>
>       resource_type = scope.find_resource_type(@type)
> +      return unless resource_type
>       newcoll = Puppet::Parser::Collector.new(scope, resource_type.name,
> str, code, self.form)
>
>       scope.compiler.add_collection(newcoll)
> --
> 1.7.2.3
>
> --
> 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