removekey is going to be best effort

Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
David Lawrence 2015-11-07 16:13:34 -08:00
parent 72cd24ac13
commit 2d4612c703
1 changed files with 1 additions and 5 deletions

View File

@ -105,11 +105,7 @@ func (cs *CryptoService) RemoveKey(keyID string) (err error) {
keyPaths := []string{keyID, filepath.Join(cs.gun, keyID)}
for _, ks := range cs.keyStores {
for _, keyPath := range keyPaths {
_, _, err = ks.GetKey(keyPath)
if err != nil {
continue
}
err = ks.RemoveKey(keyPath)
ks.RemoveKey(keyPath)
}
}
return // returns whatever the final values were