diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-11 18:16:52 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-11 18:16:52 +0000 |
commit | 37a059be9538bc90e09a17a45573fc44da6861b4 (patch) | |
tree | 466169ebd128df3d08ab561081e65f864dc8f208 /lib/puppet/pgraph.rb | |
parent | 374c830a217cd69f28797d8a771b725a0346b32e (diff) | |
download | puppet-37a059be9538bc90e09a17a45573fc44da6861b4.tar.gz puppet-37a059be9538bc90e09a17a45573fc44da6861b4.tar.xz puppet-37a059be9538bc90e09a17a45573fc44da6861b4.zip |
Most tests now pass in the whole system, but there are still about 8 cases that do not work. I am working on those now.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1904 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/pgraph.rb')
-rw-r--r-- | lib/puppet/pgraph.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/puppet/pgraph.rb b/lib/puppet/pgraph.rb index 58bee8605..bf156ed2d 100644 --- a/lib/puppet/pgraph.rb +++ b/lib/puppet/pgraph.rb @@ -68,7 +68,10 @@ class Puppet::PGraph < GRATR::Digraph next unless vertex.is_a?(type) leaves = other.leaves(vertex) - next if leaves.empty? + if leaves.empty? + remove_vertex!(vertex) + next + end # First create new edges for each of the :in edges adjacent(vertex, :direction => :in, :type => :edges).each do |edge| |