[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35

test branch puppet-dev at googlegroups.com
Wed Jul 14 10:32:41 UTC 2010


The following commit has been merged in the upstream branch:
commit 686239ff01297b526c6f8dacd2a2e12b1738f0a9
Author: Peter Meier <peter.meier at immerda.ch>
Date:   Fri Apr 23 00:22:07 2010 +0200

    Fix #3555 - fix state of purged lists
    
    As purged is not contained by default within ensureable we need to
    extend the parameter to properly deal with purged lists.

diff --git a/lib/puppet/type/maillist.rb b/lib/puppet/type/maillist.rb
index 4ab9be2..fb53bfd 100755
--- a/lib/puppet/type/maillist.rb
+++ b/lib/puppet/type/maillist.rb
@@ -9,6 +9,16 @@ module Puppet
             newvalue(:purged) do
                 provider.purge
             end
+
+            def change_to_s(current_value, newvalue)
+              return "Purged #{resource}" if newvalue == :purged
+              super
+            end
+
+            def insync?(is)
+                return true if is == :absent && should == :purged
+                super
+            end
         end
 
         newparam(:name, :namevar => true) do

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list