diff options
Diffstat (limited to 'lib/puppet/transaction.rb')
| -rw-r--r-- | lib/puppet/transaction.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/puppet/transaction.rb b/lib/puppet/transaction.rb index cb17de7b9..884206b4c 100644 --- a/lib/puppet/transaction.rb +++ b/lib/puppet/transaction.rb @@ -253,10 +253,8 @@ class Transaction # We have to dup the label here, else we modify the original edge label, # which affects whether a given event will match on the next run, which is, # of course, bad. - edge = orig_edge.class.new(orig_edge.source, orig_edge.target) - label = orig_edge.label.dup - label[:event] = events.collect { |e| e.name } - edge.label = label + edge = orig_edge.class.new(orig_edge.source, orig_edge.target, orig_edge.label) + edge.event = events.collect { |e| e.name } set_trigger(edge) end |
