Skip to content

Commit

Permalink
Merge pull request #409 from cyberious/MOD1661
Browse files Browse the repository at this point in the history
MODULES-1661 Fix to do delete with short key not long
  • Loading branch information
cmurphy committed Jan 14, 2015
2 parents 251bd23 + 18fae0a commit 6d60659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/provider/apt_key/apt_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ def create

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
Expand Down

0 comments on commit 6d60659

Please sign in to comment.