summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser')
-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)