MODULES-1661 Fix to do delete with short key not long
This commit is contained in:
parent
251bd23b5b
commit
18fae0a516
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue