summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-28 11:47:34 -0600
committerLuke Kanies <luke@madstop.com>2007-11-28 11:47:34 -0600
commitc6d1746199c043c833a34393faa10d0a960f201a (patch)
treea492058ef4c018b338765399fae32336bacdd81d /lib
parent6c1d8d3bc4f5fddf2da9d48a26fd3b851bdb7d3e (diff)
downloadpuppet-c6d1746199c043c833a34393faa10d0a960f201a.tar.gz
puppet-c6d1746199c043c833a34393faa10d0a960f201a.tar.xz
puppet-c6d1746199c043c833a34393faa10d0a960f201a.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/ast/resource_reference.rb4
1 files changed, 2 insertions, 2 deletions
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)