summaryrefslogtreecommitdiffstats
path: root/lib/puppet/transaction.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/transaction.rb')
-rw-r--r--lib/puppet/transaction.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/transaction.rb b/lib/puppet/transaction.rb
index 86d4bfc6e..7c046c898 100644
--- a/lib/puppet/transaction.rb
+++ b/lib/puppet/transaction.rb
@@ -497,10 +497,8 @@ class Transaction
# Create a relationship graph from our resource graph
@relgraph = relationship_graph
+ # This will throw an error if there are cycles in the graph.
@sorted_resources = @relgraph.topsort
-
- # Now make sure no cycles crept into our graph.
- @relgraph.check_cycle(@sorted_resources)
end
# Create a graph of all of the relationships in our resource graph.