As purged is not contained by default within ensureable we need to
extend the parameter to properly deal with purged lists.
---
lib/puppet/type/maillist.rb | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
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
--
1.6.3.3
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.