diff options
| author | Luke Kanies <luke@madstop.com> | 2008-01-14 09:30:30 -0800 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-01-14 09:30:30 -0800 |
| commit | 488c43771aea482e0212b605bde054bf8cb0533c (patch) | |
| tree | 9be9df23afa85c49e3639871ac07abc4db36edc6 /lib/puppet/node | |
| parent | 5bef4a55b3489a6404ee34b900621af8b784749a (diff) | |
| download | puppet-488c43771aea482e0212b605bde054bf8cb0533c.tar.gz puppet-488c43771aea482e0212b605bde054bf8cb0533c.tar.xz puppet-488c43771aea482e0212b605bde054bf8cb0533c.zip | |
Fixing automatic relationships. I was previously looking them
up in the relationship graph, which only stores the vertices, not
the resource table.
Diffstat (limited to 'lib/puppet/node')
| -rw-r--r-- | lib/puppet/node/catalog.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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] |
