From 83a8c68f89bd47585a9acdf7ef8a95a079fc82f9 Mon Sep 17 00:00:00 2001 From: Peter Meier Date: Tue, 13 Apr 2010 00:11:13 +0200 Subject: Fix #3540 - name methods correctly The "Ensure Parameter" tries to call destroy on the provider and not delete. --- lib/puppet/provider/maillist/mailman.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet') diff --git a/lib/puppet/provider/maillist/mailman.rb b/lib/puppet/provider/maillist/mailman.rb index fdb886f56..51b7fa34b 100755 --- a/lib/puppet/provider/maillist/mailman.rb +++ b/lib/puppet/provider/maillist/mailman.rb @@ -67,7 +67,7 @@ Puppet::Type.type(:maillist).provide(:mailman) do end # Delete the list. - def delete(purge = false) + def destroy(purge = false) args = [] if purge args << "--archives" @@ -99,7 +99,7 @@ Puppet::Type.type(:maillist).provide(:mailman) do # Remove the list and its archives. def purge - delete(true) + destroy(true) end # Pull the current state of the list from the full list. We're -- cgit