summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/resource
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-06 18:45:41 -0500
committerLuke Kanies <luke@madstop.com>2007-09-06 18:45:41 -0500
commit653c1514b613f27cb22d24b4bdd7b6c118047566 (patch)
tree54fadb5316bed0637e646c1e6f9ad09077416435 /lib/puppet/parser/resource
parent40e3b372ec2a3b45a5254a85f9b808bf3450e316 (diff)
Fixing #806. Resources correctly look up their fully qualified definition type, just like resource references do, which causes the resource and reference to again agree on the full name of a given defined type.
Diffstat (limited to 'lib/puppet/parser/resource')
-rw-r--r--lib/puppet/parser/resource/reference.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/resource/reference.rb b/lib/puppet/parser/resource/reference.rb
index 0bc732558..543ee7195 100644
--- a/lib/puppet/parser/resource/reference.rb
+++ b/lib/puppet/parser/resource/reference.rb
@@ -69,7 +69,7 @@ class Puppet::Parser::Resource::Reference
def to_s
unless defined? @namestring
- @namestring = "%s[%s]" % [type.capitalize, title]
+ @namestring = "%s[%s]" % [type.split("::").collect { |s| s.capitalize }.join("::"), title]
end
@namestring
end