summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/resource
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-04 12:09:48 -0500
committerLuke Kanies <luke@madstop.com>2007-09-04 12:09:48 -0500
commit3b2efd2a4b32478b6c6a71e1421061405a0bb11e (patch)
tree72e5ada4b0eeb3c83a1f20dfb524363a3fc5db81 /lib/puppet/parser/resource
parent0faf76ee187c7fa7c67a7fb7e7c345897006b7d8 (diff)
downloadpuppet-3b2efd2a4b32478b6c6a71e1421061405a0bb11e.tar.gz
puppet-3b2efd2a4b32478b6c6a71e1421061405a0bb11e.tar.xz
puppet-3b2efd2a4b32478b6c6a71e1421061405a0bb11e.zip
We now have a real configuration object, as a subclass of GRATR::Digraph, that has a resource graph including resources for the container objects like classes and nodes. It is apparently functional, but I have not gone through all of the other tests to fix them yet. That is next.
Diffstat (limited to 'lib/puppet/parser/resource')
-rw-r--r--lib/puppet/parser/resource/reference.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/parser/resource/reference.rb b/lib/puppet/parser/resource/reference.rb
index 0c3b61930..0bc732558 100644
--- a/lib/puppet/parser/resource/reference.rb
+++ b/lib/puppet/parser/resource/reference.rb
@@ -34,7 +34,11 @@ class Puppet::Parser::Resource::Reference
name = self.title
case type
when "class": # look for host classes
- tmp = @scope.findclass(self.title)
+ if self.title == :main
+ tmp = @scope.findclass("")
+ else
+ tmp = @scope.findclass(self.title)
+ end
when "node": # look for node definitions
tmp = @scope.parser.nodes[self.title]
else # normal definitions