From 488c43771aea482e0212b605bde054bf8cb0533c Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 14 Jan 2008 09:30:30 -0800 Subject: Fixing automatic relationships. I was previously looking them up in the relationship graph, which only stores the vertices, not the resource table. --- lib/puppet/node/catalog.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/node') diff --git a/lib/puppet/node/catalog.rb b/lib/puppet/node/catalog.rb index 4d5100c1d..ff41031e1 100644 --- a/lib/puppet/node/catalog.rb +++ b/lib/puppet/node/catalog.rb @@ -328,7 +328,7 @@ class Puppet::Node::Catalog < Puppet::PGraph # Lastly, add in any autorequires @relationship_graph.vertices.each do |vertex| - vertex.autorequire(@relationship_graph).each do |edge| + vertex.autorequire(self).each do |edge| unless @relationship_graph.edge?(edge.source, edge.target) # don't let automatic relationships conflict with manual ones. unless @relationship_graph.edge?(edge.target, edge.source) vertex.debug "Autorequiring %s" % [edge.source] -- cgit