From 8eddd4bcd23923a166e1ab7d81be1c1f2d341cdf Mon Sep 17 00:00:00 2001 From: luke Date: Sun, 18 Mar 2007 19:25:15 +0000 Subject: More work on #542 -- services in noop now produce noop events so that they can themselves trigger further changes git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2295 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/transaction.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/transaction.rb b/lib/puppet/transaction.rb index 7199ac3cd..328921ed8 100644 --- a/lib/puppet/transaction.rb +++ b/lib/puppet/transaction.rb @@ -690,7 +690,13 @@ class Transaction if noop resource.notice "Would have triggered %s from %s dependencies" % [callback, subs.length] - return nil + + # And then add an event for it. + return [Puppet::Event.new( + :event => :noop, + :transaction => self, + :source => resource + )] end if subs.length == 1 and subs[0].source == resource -- cgit