From c6d1746199c043c833a34393faa10d0a960f201a Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 28 Nov 2007 11:47:34 -0600 Subject: Fixing the first half of #917 -- the ResourcReference AST code now correctly finds the resource. It's getting lost in the configuration translation, though, so I need to fix that, too. --- lib/puppet/parser/ast/resource_reference.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet/parser') diff --git a/lib/puppet/parser/ast/resource_reference.rb b/lib/puppet/parser/ast/resource_reference.rb index b8edff8f1..b06ea17be 100644 --- a/lib/puppet/parser/ast/resource_reference.rb +++ b/lib/puppet/parser/ast/resource_reference.rb @@ -26,8 +26,8 @@ class Puppet::Parser::AST scope = hash[:scope] title = @title.safeevaluate(:scope => scope) - if @type == "class" - objtype = @type + if @type.to_s.downcase == "class" + objtype = "class" title = qualified_class(scope, title) else objtype = qualified_type(scope) -- cgit