summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-07-12 22:01:50 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-07-12 22:01:50 +0000
commitc3290a02bfe4be5f90d72c987d269e336ba4a4a3 (patch)
tree88874c4e514f79637d71c8395f05404f06854e43 /lib/puppet
parent2086e07255e02cc61b0bf2e1de72e62a90a19062 (diff)
downloadpuppet-c3290a02bfe4be5f90d72c987d269e336ba4a4a3.tar.gz
puppet-c3290a02bfe4be5f90d72c987d269e336ba4a4a3.tar.xz
puppet-c3290a02bfe4be5f90d72c987d269e336ba4a4a3.zip
Fixing the mailman provider so it correctly matches case. Apparently mailman helpfully autocapitalizes list names.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2688 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rwxr-xr-xlib/puppet/provider/maillist/mailman.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/provider/maillist/mailman.rb b/lib/puppet/provider/maillist/mailman.rb
index 95abf9b3d..06394a1fc 100755
--- a/lib/puppet/provider/maillist/mailman.rb
+++ b/lib/puppet/provider/maillist/mailman.rb
@@ -22,7 +22,7 @@ Puppet::Type.type(:maillist).provide(:mailman) do
# Prefetch our list list, yo.
def self.prefetch(lists)
instances.each do |prov|
- if list = lists[prov.name]
+ if list = lists[prov.name] || lists[prov.name.downcase]
list.provider = prov
end
end
@@ -100,8 +100,8 @@ Puppet::Type.type(:maillist).provide(:mailman) do
# Pull the current state of the list from the full list. We're
# getting some double entendre here....
def query
- self.class.instances.each do |list|
- if list.name == self.name
+ provider.class.instances.each do |list|
+ if list.name == self.name or list.name.downcase == self.name
return list.property_hash
end
end