summaryrefslogtreecommitdiffstats
path: root/lib/puppet/node
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-01-19 11:30:04 -0800
committerLuke Kanies <luke@madstop.com>2008-01-19 11:30:04 -0800
commit0a7b028a9abf48e5358e7032cf3f3184c4c3ba5e (patch)
tree686bf1609785cdd017c299266bdef41165f6baa5 /lib/puppet/node
parent1f15c80587529192321658a2e51fda33d481ced5 (diff)
parent4618140eb0dad58fd54e0543b9a2629c2d675623 (diff)
downloadpuppet-0a7b028a9abf48e5358e7032cf3f3184c4c3ba5e.tar.gz
puppet-0a7b028a9abf48e5358e7032cf3f3184c4c3ba5e.tar.xz
puppet-0a7b028a9abf48e5358e7032cf3f3184c4c3ba5e.zip
Merge branch '0.24.x'
Diffstat (limited to 'lib/puppet/node')
-rw-r--r--lib/puppet/node/catalog.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/puppet/node/catalog.rb b/lib/puppet/node/catalog.rb
index c9de2019d..9601309d8 100644
--- a/lib/puppet/node/catalog.rb
+++ b/lib/puppet/node/catalog.rb
@@ -1,5 +1,4 @@
require 'puppet/indirector'
-require 'puppet/external/gratr/digraph'
# This class models a node catalog. It is the thing
# meant to be passed from server to client, and it contains all
@@ -212,9 +211,8 @@ class Puppet::Node::Catalog < Puppet::PGraph
# Create a proc for examining edges, which we'll use to build our tree
# of TransBuckets and TransObjects.
bucket = nil
- edges = proc do |edge|
+ walk(main, :out) do |source, target|
# The sources are always non-builtins.
- source, target = edge.source, edge.target
unless tmp = buckets[source.to_s]
if tmp = buckets[source.to_s] = source.to_trans
bucket = tmp
@@ -239,11 +237,6 @@ class Puppet::Node::Catalog < Puppet::PGraph
end
end
end
- dfs(:start => main, :examine_edge => edges)
-
- unless main
- raise Puppet::DevError, "Could not find 'main' class; cannot generate catalog"
- end
# Retrieve the bucket for the top-level scope and set the appropriate metadata.
unless result = buckets[main.to_s]