]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Make the anchor type propagate refresh events
authorPhilip Potter <philipgpotter@gmail.com>
Thu, 12 Jul 2012 16:05:23 +0000 (17:05 +0100)
committerJeff McCune <jeff@puppetlabs.com>
Fri, 12 Apr 2013 00:55:11 +0000 (17:55 -0700)
Without this patch the anchor resource does not propogate refresh
events, making it difficult to subscribe to a class which has been
notified by another resource.

lib/puppet/type/anchor.rb

index 6b817321544eaa4b9777c1de084d10dad1c8669c..fe1e5aa19524880210055bc5c7953c25653b72d3 100644 (file)
@@ -38,4 +38,9 @@ Puppet::Type.newtype(:anchor) do
     desc "The name of the anchor resource."
   end
 
+  def refresh
+    # We don't do anything with them, but we need this to
+    #   show that we are "refresh aware" and not break the
+    #   chain of propagation.
+  end
 end