summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/transaction.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/transaction.rb b/lib/puppet/transaction.rb
index f0ef8469d..3ef27620e 100644
--- a/lib/puppet/transaction.rb
+++ b/lib/puppet/transaction.rb
@@ -113,7 +113,7 @@ class Transaction
#---------------------------------------------------------------
def rollback
- events = @changes.collect { |change|
+ events = @changes.reverse.collect { |change|
if change.is_a?(Puppet::StateChange)
# skip changes that were never actually run
next unless change.run