summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-09-08 20:02:53 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-09-08 20:02:53 +0000
commit99db7bc2df7c086bb3c57c9e817b1403e225c5c4 (patch)
tree0d5a071456e0f15633870069a8a2824b9f5388aa /lib/puppet
parent8f0ef3f9bf7f8fd041215c3b6eac8364c4732009 (diff)
downloadpuppet-99db7bc2df7c086bb3c57c9e817b1403e225c5c4.tar.gz
puppet-99db7bc2df7c086bb3c57c9e817b1403e225c5c4.tar.xz
puppet-99db7bc2df7c086bb3c57c9e817b1403e225c5c4.zip
reverting changes in the reverse order of what i executed them
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@638 980ebf18-57e1-0310-9a29-db15c13687c0
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