From ddad4455cc914862f16c2e8cae96812e244b0a1d Mon Sep 17 00:00:00 2001 From: Philip Potter Date: Thu, 12 Jul 2012 17:05:23 +0100 Subject: Make the anchor type propagate refresh events 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 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/puppet') diff --git a/lib/puppet/type/anchor.rb b/lib/puppet/type/anchor.rb index 6b81732..fe1e5aa 100644 --- a/lib/puppet/type/anchor.rb +++ b/lib/puppet/type/anchor.rb @@ -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 -- cgit v1.2.3