summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-18 19:25:15 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-18 19:25:15 +0000
commit8eddd4bcd23923a166e1ab7d81be1c1f2d341cdf (patch)
treef82d1ae8f6e5910b919e5f5ebe3d9ad3e44ab20c /lib/puppet
parent2fe9998e0256a39b413d9e73a04ba4e7784ea3e6 (diff)
downloadpuppet-8eddd4bcd23923a166e1ab7d81be1c1f2d341cdf.tar.gz
puppet-8eddd4bcd23923a166e1ab7d81be1c1f2d341cdf.tar.xz
puppet-8eddd4bcd23923a166e1ab7d81be1c1f2d341cdf.zip
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
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/transaction.rb8
1 files changed, 7 insertions, 1 deletions
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