While find_fully_qualified expects (and gets) fully qualified class names it
does not always get absolute names (with the ::-prefix); test in the global
scope refers to the same thing as ::test.

Signed-off-by: Markus Roberts <[email protected]>
---
 lib/puppet/resource/type_collection.rb |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/lib/puppet/resource/type_collection.rb 
b/lib/puppet/resource/type_collection.rb
index 58e8b94..9ed2733 100644
--- a/lib/puppet/resource/type_collection.rb
+++ b/lib/puppet/resource/type_collection.rb
@@ -198,11 +198,7 @@ class Puppet::Resource::TypeCollection
   private
 
   def find_fully_qualified(name, type)
-    return nil unless name =~ /^::/
-
-    name = name.sub(/^::/, '')
-
-    send(type, name)
+    send(type, name.sub(/^::/, ''))
   end
 
   def find_partially_qualified(namespace, name, type)
-- 
1.6.4

-- 
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