MODULES-1661 Fix to do delete with short key not long

This commit is contained in:
Travis Fields 2015-01-13 23:43:13 -08:00
parent 251bd23b5b
commit 18fae0a516

View file

@ -167,8 +167,8 @@ Puppet::Type.type(:apt_key).provide(:apt_key) do
def destroy
begin
apt_key('del', resource.provider.long)
r = execute(["#{command(:apt_key)} list | grep #{resource.provider.long}"], :failonfail => false)
apt_key('del', resource.provider.short)
r = execute(["#{command(:apt_key)} list | grep '/#{resource.provider.short}\s'"], :failonfail => false)
end while r.exitstatus == 0
@property_hash.clear
end